aa
This commit is contained in:
@@ -3887,3 +3887,20 @@ func UpdateBrand(ctx *jxcontext.Context, payload map[string]interface{}, isDel b
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func CreateVendorStore(ctx *jxcontext.Context, storeID, vendorID int, payload map[string]interface{}) (err error) {
|
||||
// var (
|
||||
// db = dao.GetDB()
|
||||
// )
|
||||
if payload["vendorOrgCode"] == nil {
|
||||
return fmt.Errorf("请选择平台账号!")
|
||||
}
|
||||
// storeDetail, _ := dao.GetStoreDetail(db, storeID, vendorID, payload["vendorOrgCode"].(string))
|
||||
// handler := partner.GetPurchasePlatformFromVendorID(vendorID)
|
||||
// vendorStoreID, err := handler.CreateStore2(db, storeID, ctx.GetUserName(), payload)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// AddStoreVendorMap(ctx, db, vendorID, vendorOrgCode, storeID, storeMap)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user