This commit is contained in:
richboo111
2023-06-28 11:38:41 +08:00
parent d3d0ff2fe8
commit baf80e3e9b
4 changed files with 269 additions and 62 deletions

View File

@@ -1658,6 +1658,25 @@ func (c *StoreController) BatchUpdateMTStoreLogos() {
})
}
// @Title 批量绑定淘鲜达门店
// @Description 批量绑定淘鲜达门店
// @Param token header string true "认证token"
// @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)
}
return nil, hint, err
})
}
// @Title 测试操作freight_template
// @Description 测试操作freight_template
// @Param token header string true "认证token"