|
|
@ -10,13 +10,14 @@ import ( |
|
|
|
|
|
|
|
// Coupon is the golang structure for table coupon.
|
|
|
|
type Coupon struct { |
|
|
|
Id uint `json:"id" orm:"id" description:""` //
|
|
|
|
Title string `json:"title" orm:"title" description:"名字"` // 名字
|
|
|
|
Cover string `json:"cover" orm:"cover" description:"封面小图片"` // 封面小图片
|
|
|
|
ImgUrl string `json:"imgUrl" orm:"img_url" description:"放大看全图"` // 放大看全图
|
|
|
|
StartTime int `json:"startTime" orm:"start_time" description:"有效期起始"` // 有效期起始
|
|
|
|
EndTime int `json:"endTime" orm:"end_time" description:"有效期截止"` // 有效期截止
|
|
|
|
Deleted int `json:"deleted" orm:"deleted" description:"是否删除?"` // 是否删除?
|
|
|
|
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
|
|
|
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
|
|
|
Id uint `json:"id" orm:"id" description:""` //
|
|
|
|
Title string `json:"title" orm:"title" description:"名字"` // 名字
|
|
|
|
Cover string `json:"cover" orm:"cover" description:"封面小图片"` // 封面小图片
|
|
|
|
ImgUrl string `json:"imgUrl" orm:"img_url" description:"放大看全图"` // 放大看全图
|
|
|
|
StartTime int `json:"startTime" orm:"start_time" description:"有效期起始"` // 有效期起始
|
|
|
|
EndTime int `json:"endTime" orm:"end_time" description:"有效期截止"` // 有效期截止
|
|
|
|
Type int `json:"type" orm:"type" description:"类型(1:普通 2:二维码)"` // 类型(1:普通 2:二维码)
|
|
|
|
Deleted int `json:"deleted" orm:"deleted" description:"是否删除?"` // 是否删除?
|
|
|
|
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
|
|
|
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
|
|
|
} |