1
This commit is contained in:
@@ -1544,6 +1544,29 @@ func (c *StoreController) CreateFreeShipTemplates() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 批量配置抖音门店自动呼叫运力
|
||||
// @Description 批量配置抖音门店自动呼叫运力
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrgCode formData string true "抖音总账号"
|
||||
// @Param openIDs formData string true "开启自动运力门店,[]string对象"
|
||||
// @Param closeIDs formData string true "关闭自动运力门店,[]string对象"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /SetStoreAutoCallRider [post]
|
||||
func (c *StoreController) SetStoreAutoCallRider() {
|
||||
c.callSetStoreAutoCallRider(func(params *tStoreSetStoreAutoCallRiderParams) (retVal interface{}, errCode string, err error) {
|
||||
openIDs := make([]int64, 0)
|
||||
closeIDs := make([]int64, 0)
|
||||
if err1 := utils.UnmarshalUseNumber([]byte(params.OpenIDs), &openIDs); err1 == nil {
|
||||
if err2 := utils.UnmarshalUseNumber([]byte(params.CloseIDs), &closeIDs); err2 == nil {
|
||||
err = cms.SetStoreAutoCallRider(params.VendorOrgCode, openIDs, closeIDs)
|
||||
return nil, "", err
|
||||
}
|
||||
}
|
||||
return nil, "", nil
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 打印机获取授权账号再京西菜市的绑定关系(其实就是根据平台门店id获取绑定门店id)
|
||||
// @Description 打印机获取授权账号再京西菜市的绑定关系
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user