- GetOrderEvents

- idcard and licence for store
This commit is contained in:
gazebo
2018-11-12 12:00:09 +08:00
parent 86b50e5c66
commit 920e6ba35a
9 changed files with 81 additions and 38 deletions

View File

@@ -18,7 +18,13 @@ const (
)
var (
PromotionStatusName map[int]string
PromotionStatusName = map[int]string{
PromotionStatusLocalCreated: "未确认",
PromotionStatusRemoteFailed: "失败",
PromotionStatusRemoteCreated: "正常",
PromotionStatusCanceled: "取消",
PromotionStatusEnded: "结束",
}
)
type Promotion struct {
@@ -41,16 +47,6 @@ type Promotion struct {
Remark string `orm:"type(text)" json:"-"`
}
func init() {
PromotionStatusName = map[int]string{
PromotionStatusLocalCreated: "创建中",
PromotionStatusRemoteFailed: "失败",
PromotionStatusRemoteCreated: "正常",
PromotionStatusCanceled: "取消",
PromotionStatusEnded: "结束",
}
}
func (*Promotion) TableUnique() [][]string {
return [][]string{
[]string{"Name", "VendorID", "Type", "DeletedAt"},