1
This commit is contained in:
@@ -6417,6 +6417,7 @@ func BatchUpdateMTStoreLogos(vendorOrgCode string, relInfo []MtRelInfo) (hint st
|
||||
}
|
||||
|
||||
type TaoBindInfo struct {
|
||||
storeID int `json:"storeID"`
|
||||
VendorStoreID string `json:"vendorStoreID"`
|
||||
VendorStoreName string `json:"vendorStoreName"`
|
||||
Status string `json:"status"` //渠道营业状态
|
||||
@@ -6428,7 +6429,7 @@ var TaoStoreStatus = map[string]int{
|
||||
}
|
||||
|
||||
// SingleBindTaoVegetable 单独绑定淘鲜达平台三方映射
|
||||
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string, storeID int) (error, string) {
|
||||
func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOrgCode string) (error, string) {
|
||||
var (
|
||||
db *dao.DaoDB
|
||||
errList errlist.ErrList
|
||||
@@ -6451,7 +6452,7 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo, vendorOr
|
||||
// }
|
||||
//}
|
||||
storeMap := &model.StoreMap{
|
||||
StoreID: storeID,
|
||||
StoreID: v.storeID,
|
||||
VendorID: model.VendorIDTaoVegetable,
|
||||
VendorOrgCode: vendorOrgCode,
|
||||
Status: TaoStoreStatus[v.Status],
|
||||
|
||||
@@ -1687,7 +1687,6 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
|
||||
// @Description 批量绑定淘鲜达门店
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrgCode formData string true "账号id"
|
||||
// @Param storeID formData int true "本地门店id"
|
||||
// @Param bindInfos formData string true "TaoBindInfo"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
@@ -1698,7 +1697,7 @@ func (c *StoreController) SingleBindTaoVegetable() {
|
||||
b := bytes.NewBufferString(params.BindInfos)
|
||||
decoder := json.NewDecoder(b)
|
||||
if err = decoder.Decode(&taoBindInfo); err == nil {
|
||||
err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode, params.StoreID)
|
||||
err, hint = cms.SingleBindTaoVegetable(params.Ctx, taoBindInfo, params.VendorOrgCode)
|
||||
}
|
||||
return nil, hint, err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user