- GetVendorCategories
This commit is contained in:
@@ -15,15 +15,12 @@ type SkuController struct {
|
||||
// @Description 得到厂商商品类别(区别于商家SKU类别)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorID query int true "厂商ID"
|
||||
// @Param parentID query int false "父ID,-1表示所有,缺省为-1"
|
||||
// @Param parentID query string false "父ID,-1表示所有,缺省为空"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetVendorCategories [get]
|
||||
func (c *SkuController) GetVendorCategories() {
|
||||
c.callGetVendorCategories(func(params *tSkuGetVendorCategoriesParams) (retVal interface{}, errCode string, err error) {
|
||||
if c.GetString("parentID") == "" {
|
||||
params.ParentID = -1
|
||||
}
|
||||
retVal, err = cms.GetVendorCategories(params.VendorID, params.ParentID)
|
||||
return retVal, "", err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user