- GetStores API增加POST方式以方便传入大量参数

新增storeIDs参数,可传入要查询的城市列表,storeID参数与新参数是或的关系。
This commit is contained in:
gazebo
2019-07-22 08:55:25 +08:00
parent b39798e940
commit b65f5ed0a0
3 changed files with 17 additions and 24 deletions

View File

@@ -18,6 +18,7 @@ type StoreController struct {
// @Param token header string true "认证token"
// @Param keyword query string false "查询关键字(可以为空,为空表示不限制)"
// @Param storeID query int false "门店ID"
// @Param storeIDs query string false "门店ID列表"
// @Param name query string false "门店名称(不要求完全一致)"
// @Param placeID query int false "所属地点ID"
// @Param placeLevel query int false "所属地点级别"
@@ -39,7 +40,7 @@ type StoreController struct {
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStores [get]
// @router /GetStores [get,post]
func (c *StoreController) GetStores() {
c.callGetStores(func(params *tStoreGetStoresParams) (retVal interface{}, errCode string, err error) {
timeList, err := jxutils.BatchStr2Time(params.OrderTimeFrom, params.OrderTimeTo)
@@ -129,16 +130,6 @@ func (c *StoreController) CreateStore() {
})
}
// @Title 空方法,占位用
// @Description 空方法,占位用
// @Param token header string true "认证token"
// @Param payload formData string true "json数据store对象"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /ZZZZZ [put]
func (c *StoreController) ZZZZZ() {
}
// @Title 得到门店映射信息
// @Description 得到门店映射信息
// @Param token header string true "认证token"