- DeleteCategory added.
This commit is contained in:
@@ -111,3 +111,17 @@ func (c *SkuController) ReorderCategories() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 删除商品类别
|
||||
// @Description 删除商品类别,只有无商品且无子类别的才能删除
|
||||
// @Param token header string true "认证token"
|
||||
// @Param categoryID query int true "商品类别ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /DeleteCategory [delete]
|
||||
func (c *SkuController) DeleteCategory() {
|
||||
c.callDeleteCategory(func(params *tSkuDeleteCategoryParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = cms.DeleteCategory(params.CategoryID, false, GetUserNameFromToken(params.Token))
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user