- 根据京东回调存储京东到家活动信息至本地

This commit is contained in:
gazebo
2019-07-08 17:01:17 +08:00
parent 6c4ca2fd17
commit 9d08a1bcc9
9 changed files with 301 additions and 42 deletions

View File

@@ -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"},
}
}