- 根据京东回调存储京东到家活动信息至本地
This commit is contained in:
@@ -19,6 +19,7 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
ActStatusNA = 0 // 未知
|
||||
ActStatusCreated = 1 // 需同步
|
||||
ActStatusCanceled = 2 // 需同步
|
||||
ActStatusEnded = 3 // 不需要同步,根据活动时间自动刷新的
|
||||
@@ -33,6 +34,13 @@ var (
|
||||
ActSkuDirectDown: "直降",
|
||||
ActSkuSecKill: "秒杀",
|
||||
}
|
||||
|
||||
ActStatusName = map[int]string{
|
||||
ActStatusNA: "未知",
|
||||
ActStatusCreated: "正常",
|
||||
ActStatusCanceled: "取消",
|
||||
ActStatusEnded: "结束",
|
||||
}
|
||||
)
|
||||
|
||||
type Act struct {
|
||||
@@ -75,6 +83,7 @@ type ActMap struct {
|
||||
func (*ActMap) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"ActID", "VendorID", "DeletedAt"},
|
||||
[]string{"VendorActID", "VendorID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user