| 1234567891011121314151617181920 |
- package domain
- type Goods struct {
- Id int64 `xorm:"id" json:"id"`
- CategoryId int64 `xorm:"category_id" json:"category_id"`
- GoodsName string `xorm:"goods_name" json:"goods_name"`
- GoodsDescribe string `xorm:"goods_describe" json:"goods_describe"`
- AttributeList string `xorm:"attribute_list" json:"attribute_list"`
- GoodsDetails string `xorm:"goods_details" json:"goods_details"`
- GoodsPrice float32 `xorm:"goods_price" json:"goods_price"`
- GoodsCount int32 `xorm:"goods_count" json:"goods_count"`
- }
- func (receiver Goods) GetTableName() string {
- return "goods"
- }
- func GetGoodsTableName() string {
- return "goods"
- }
|