|
@ -1,18 +1,13 @@ |
|
|
package models |
|
|
package models |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
"git.ouxuan.net/tommy/osmanthuswine/src/core" |
|
|
"git.ouxuan.net/tommy/osmanthuswine/src/core" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
const CustomerGoodsTableName = TableNamePrefix + "customer_goods" |
|
|
const CustomerGoodsTableName = TableNamePrefix + "customer_goods" |
|
|
|
|
|
|
|
|
type CustomerGoods struct { |
|
|
type CustomerGoods struct { |
|
|
Id int `json:"id" xorm:"not null pk autoincr INT(11)"` |
|
|
|
|
|
IsDelete bool `json:"is_delete" xorm:"not null default 0 comment('是否删除') TINYINT(1)"` |
|
|
|
|
|
CreatedAt time.Time `json:"created_at" xorm:"created comment('创建时间') TIMESTAMP"` |
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at" xorm:"updated comment('更新时间') TIMESTAMP"` |
|
|
|
|
|
|
|
|
Model `xorm:"extends"` |
|
|
|
|
|
|
|
|
ActivityId int `json:"activity_id" xorm:"not null default 0 comment('互动id') INT(11)"` |
|
|
ActivityId int `json:"activity_id" xorm:"not null default 0 comment('互动id') INT(11)"` |
|
|
AreaId int `json:"area_id" xorm:"not null default 0 comment('地区id') INT(11)"` |
|
|
AreaId int `json:"area_id" xorm:"not null default 0 comment('地区id') INT(11)"` |
|
@ -24,7 +19,7 @@ type CustomerGoods struct { |
|
|
Price float64 `json:"price" xorm:"not null default 0.00 comment('商品单价') DECIMAL(18,2)"` |
|
|
Price float64 `json:"price" xorm:"not null default 0.00 comment('商品单价') DECIMAL(18,2)"` |
|
|
Desc string `json:"desc" xorm:"not null default '' comment('商品介绍') VARCHAR(255)"` |
|
|
Desc string `json:"desc" xorm:"not null default '' comment('商品介绍') VARCHAR(255)"` |
|
|
|
|
|
|
|
|
//// 无关变量
|
|
|
|
|
|
|
|
|
// 无关变量
|
|
|
GoodType int `json:"good_type" xorm:"-"` |
|
|
GoodType int `json:"good_type" xorm:"-"` |
|
|
Postage float64 `json:"postage" xorm:"-"` |
|
|
Postage float64 `json:"postage" xorm:"-"` |
|
|
Qrcode string `json:"qrcode,omitempty" xorm:"-"` |
|
|
Qrcode string `json:"qrcode,omitempty" xorm:"-"` |
|
|