This commit is contained in:
suyl
2021-09-10 09:11:23 +08:00
parent 4ae75be0d6
commit 92fd4c8107
5 changed files with 24 additions and 18 deletions

View File

@@ -963,15 +963,16 @@ func (c *StoreController) GetJddjStoreInfo() {
// @Title 查询品牌
// @Description 查询品牌
// @Param token header string false "认证token"
// @Param brandID query int false "品牌ID"
// @Param name query string false "品牌名"
// @Param token header string false "认证token"
// @Param brandID query int false "品牌ID"
// @Param name query string false "品牌名"
// @Param isManage query bool false "是否是查自己管理的品牌"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetBrands [get]
func (c *StoreController) GetBrands() {
c.callGetBrands(func(params *tStoreGetBrandsParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetBrands(params.Ctx, params.Name, params.BrandID)
retVal, err = cms.GetBrands(params.Ctx, params.Name, params.BrandID, params.IsManage)
return retVal, "", err
})
}