This commit is contained in:
邹宗楠
2023-10-09 17:37:55 +08:00
parent 9aedf80217
commit 77685f8676
2 changed files with 30 additions and 15 deletions

View File

@@ -1169,14 +1169,19 @@ func (c *StoreController) GetStoreAcctBalance() {
// @Description 直接修改平台门店上下线
// @Param token header string true "认证token"
// @Param storeID formData int true "门店ID"
// @Param vendorID formData int true "平台ID"
// @Param vendorIDs query string true "订单所属厂商列表[1,2,3],缺省不限制"
// @Param status formData int true "状态,-1 下线1上线"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateVendorStoreBussinessStatus [post]
func (c *StoreController) UpdateVendorStoreBussinessStatus() {
c.callUpdateVendorStoreBussinessStatus(func(params *tStoreUpdateVendorStoreBussinessStatusParams) (retVal interface{}, errCode string, err error) {
err = cms.UpdateVendorStoreBussinessStatus(params.Ctx, params.StoreID, params.VendorID, params.Status)
var vendorIDList []int
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDList); err != nil {
return retVal, "", err
}
err = cms.UpdateVendorStoreBussinessStatus(params.Ctx, params.StoreID, vendorIDList, params.Status)
return retVal, "", err
})
}