添加前端小接口

This commit is contained in:
邹宗楠
2022-07-01 17:20:37 +08:00
parent b9a4ad39ae
commit 9fe5997ae8
3 changed files with 40 additions and 0 deletions

View File

@@ -766,6 +766,24 @@ func (c *StoreController) GetStoreCategoryMap() {
})
}
// GetStoreCategoryNoDefault 得到门店分类,该功能属于手机客户端!与上功能相同!只是不再返回默认门店分类。
// @Title 得到门店类别
// @Description 得到门店分类,该功能属于手机客户端!与上功能相同!只是不再返回默认门店分类。
// @Param token header string true "认证token"
// @Param parentID query int false "父ID"
// @Param level query int false "分类等级"
// @Param storeID query int true "门店ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStoreCategoryNoDefault [get]
func (c *StoreController) GetStoreCategoryNoDefault() {
c.callGetStoreCategoryNoDefault(func(params *tStoreGetStoreCategoryNoDefaultParams) (interface{}, string, error) {
// 获取门店分类
categoryList, err := cms.GetStoreCategoryMapNoDefault(params.Ctx, params.ParentID, params.Level, params.StoreID)
return categoryList, "", err
})
}
// @Title 新增门店类别
// @Description 新增门店类别
// @Param token header string true "认证token"