- SkuCategoryMap
This commit is contained in:
@@ -170,6 +170,7 @@ type SkuCategoryMap struct {
|
||||
VendorOrgCode string `orm:"size(32)" json:"vendorOrgCode"` // 同一平台下不同的商户代码,如果只有一个,可以为空
|
||||
|
||||
VendorCatID string `orm:"size(32);column(vendor_cat_id)" json:"vendorCatID"`
|
||||
SyncStatus int8 `orm:"default(2)"`
|
||||
}
|
||||
|
||||
func (*SkuCategoryMap) TableUnique() [][]string {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
package partner
|
||||
|
||||
type IAPIManager interface {
|
||||
GetAPI(vendorID int, orgCode string) interface{}
|
||||
GetAPI(vendorID int, appOrgCode string) interface{}
|
||||
GetAppOrgCodeList(vendorID int) (appOrgCodeList []string)
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -25,8 +25,8 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
func getAPI(orgCode string) (apiObj *jdapi.API) {
|
||||
return partner.CurAPIManager.GetAPI(model.VendorIDJD, orgCode).(*jdapi.API)
|
||||
func getAPI(appOrgCode string) (apiObj *jdapi.API) {
|
||||
return partner.CurAPIManager.GetAPI(model.VendorIDJD, appOrgCode).(*jdapi.API)
|
||||
}
|
||||
|
||||
func (c *PurchaseHandler) GetVendorID() int {
|
||||
|
||||
Reference in New Issue
Block a user