This commit is contained in:
richboo111
2023-10-23 10:56:05 +08:00
parent 08c39f4961
commit dd4c3b1d72

View File

@@ -1687,20 +1687,13 @@ 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
// @router /SingleBindTaoVegetable [post]
func (c *StoreController) SingleBindTaoVegetable() {
c.callSingleBindTaoVegetable(func(params *tStoreSingleBindTaoVegetableParams) (retVal interface{}, hint string, err error) {
taoBindInfo := make([]cms.TaoBindInfo, 0)
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)
}
return nil, hint, err
})
}
// @Title 更新淘鲜达门店信息