This commit is contained in:
gazebo
2019-08-14 13:57:12 +08:00
parent bc6a5e9400
commit d3ed741016
3 changed files with 18 additions and 6 deletions

View File

@@ -58,12 +58,17 @@ type StoreSkuExt struct {
WscID string `orm:"column(wsc_id);index" json:"wscID"` // 表示微盟skuId WscID string `orm:"column(wsc_id);index" json:"wscID"` // 表示微盟skuId
WscID2 string `orm:"column(wsc_id2);index" json:"wscID2"` // 表示微盟goodsId WscID2 string `orm:"column(wsc_id2);index" json:"wscID2"` // 表示微盟goodsId
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"` JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
EbaiSyncStatus int8 `orm:"default(2)" json:"ebaiSyncStatus"`
MtwmSyncStatus int8 `orm:"default(2)" json:"mtwmSyncStatus"`
WscSyncStatus int8 `orm:"default(2)" json:"wscSyncStatus"`
EbaiSyncStatus int8 `orm:"default(2)" json:"ebaiSyncStatus"` // JdPrice int `json:"jdPrice"`
MtwmSyncStatus int8 `orm:"default(2)" json:"mtwmSyncStatus"` // EbaiPrice int `json:"ebaiPrice"`
WscSyncStatus int8 `orm:"default(2)" json:"wscSyncStatus"` // MtwmPrice int `json:"mtwmPrice"`
AutoSaleAt time.Time `orm:"type(datetime);null" json:"autoSaleAt"` // WscPrice int `json:"wscPrice"`
AutoSaleAt time.Time `orm:"type(datetime);null" json:"autoSaleAt"`
ActPrice int `json:"actPrice"` ActPrice int `json:"actPrice"`
EarningPrice int `json:"earningPrice"` EarningPrice int `json:"earningPrice"`

View File

@@ -106,6 +106,11 @@ type StoreSkuBind struct {
MtwmSyncStatus int8 `orm:"default(2)"` MtwmSyncStatus int8 `orm:"default(2)"`
WscSyncStatus int8 `orm:"default(2)"` WscSyncStatus int8 `orm:"default(2)"`
// JdPrice int `json:"jdPrice"`
// EbaiPrice int `json:"ebaiPrice"`
// MtwmPrice int `json:"mtwmPrice"`
// WscPrice int `json:"wscPrice"`
AutoSaleAt time.Time `orm:"type(datetime);null" json:"autoSaleAt"` AutoSaleAt time.Time `orm:"type(datetime);null" json:"autoSaleAt"`
} }

View File

@@ -134,6 +134,9 @@ type IPurchasePlatformHandler interface {
GetVendorID() int GetVendorID() int
// 只与平台相关
GetVendorCategories(ctx *jxcontext.Context) (vendorCats []*model.SkuVendorCategory, err error)
//////// ////////
// Store // Store
ReadStore(ctx *jxcontext.Context, vendorStoreID string) (store *dao.StoreDetail, err error) ReadStore(ctx *jxcontext.Context, vendorStoreID string) (store *dao.StoreDetail, err error)
@@ -150,7 +153,6 @@ type IPurchasePlatformHandler interface {
RefreshAllStoresID(ctx *jxcontext.Context, parentTask tasksch.ITask, isAsync bool) (hint string, err error) RefreshAllStoresID(ctx *jxcontext.Context, parentTask tasksch.ITask, isAsync bool) (hint string, err error)
UploadImg(ctx *jxcontext.Context, imgURL string, imgData []byte, imgName string) (imgHint string, err error) UploadImg(ctx *jxcontext.Context, imgURL string, imgData []byte, imgName string) (imgHint string, err error)
GetVendorCategories(ctx *jxcontext.Context) (vendorCats []*model.SkuVendorCategory, err error)
} }
// db *dao.DaoDB, // db *dao.DaoDB,