This commit is contained in:
苏尹岚
2021-02-03 14:36:11 +08:00
parent fb55dd6a85
commit 689e7b4bc7
4 changed files with 31 additions and 2 deletions

View File

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