This commit is contained in:
苏尹岚
2021-01-06 09:46:54 +08:00
parent 756b39711d
commit 5753470c8b
4 changed files with 10 additions and 4 deletions

View File

@@ -943,13 +943,14 @@ func (c *StoreController) GetJddjStoreInfo() {
// @Title 查询品牌
// @Description 查询品牌
// @Param token header string true "认证token"
// @Param brandID query int false "品牌ID"
// @Param name query string 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)
retVal, err = cms.GetBrands(params.Ctx, params.Name, params.BrandID)
return retVal, "", err
})
}