Goods.go 656 B

1234567891011121314151617181920
  1. package domain
  2. type Goods struct {
  3. Id int64 `xorm:"id" json:"id"`
  4. CategoryId int64 `xorm:"category_id" json:"category_id"`
  5. GoodsName string `xorm:"goods_name" json:"goods_name"`
  6. GoodsDescribe string `xorm:"goods_describe" json:"goods_describe"`
  7. AttributeList string `xorm:"attribute_list" json:"attribute_list"`
  8. GoodsDetails string `xorm:"goods_details" json:"goods_details"`
  9. GoodsPrice float32 `xorm:"goods_price" json:"goods_price"`
  10. GoodsCount int32 `xorm:"goods_count" json:"goods_count"`
  11. }
  12. func (receiver Goods) GetTableName() string {
  13. return "goods"
  14. }
  15. func GetGoodsTableName() string {
  16. return "goods"
  17. }