新增商城端-热门类目接口

This commit is contained in:
kuang.yifei@iwhalecloud.com 2022-06-06 17:52:00 +08:00
parent 8735f748d5
commit eb6d85e97c
2 changed files with 19 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import com.ghy.common.utils.ExceptionUtil;
import com.ghy.common.utils.ShiroUtils;
import com.ghy.goods.domain.DeptGoodsCategory;
import com.ghy.goods.service.DeptGoodsCategoryService;
import com.ghy.web.pojo.vo.AppCategoryRequest;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
@ -104,6 +105,18 @@ public class GoodsDeptCategoryController extends BaseController {
return AjaxResult.success(deptGoodsCategoryService.appList(deptGoodsCategory.getDeptId()));
}
@PostMapping("/app/category")
@ResponseBody
public AjaxResult appCategory(@RequestBody AppCategoryRequest request){
try {
return AjaxResult.success();
}catch (Exception e){
e.printStackTrace();
return AjaxResult.error(e.getMessage());
}
}
/**
* 删除子公司商品类别接口
*/

View File

@ -0,0 +1,6 @@
package com.ghy.web.pojo.vo;
public class AppCategoryRequest {
}