From eb6d85e97c54931c2a9926fd6d3fa2d5f9802d81 Mon Sep 17 00:00:00 2001 From: "kuang.yifei@iwhalecloud.com" Date: Mon, 6 Jun 2022 17:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=9F=8E=E7=AB=AF-?= =?UTF-8?q?=E7=83=AD=E9=97=A8=E7=B1=BB=E7=9B=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../goods/GoodsDeptCategoryController.java | 13 +++++++++++++ .../com/ghy/web/pojo/vo/AppCategoryRequest.java | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 ghy-admin/src/main/java/com/ghy/web/pojo/vo/AppCategoryRequest.java diff --git a/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java b/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java index 16170ce6..8b829df8 100644 --- a/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java +++ b/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java @@ -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()); + } + } + /** * 删除子公司商品类别接口 */ diff --git a/ghy-admin/src/main/java/com/ghy/web/pojo/vo/AppCategoryRequest.java b/ghy-admin/src/main/java/com/ghy/web/pojo/vo/AppCategoryRequest.java new file mode 100644 index 00000000..eb746d2e --- /dev/null +++ b/ghy-admin/src/main/java/com/ghy/web/pojo/vo/AppCategoryRequest.java @@ -0,0 +1,6 @@ +package com.ghy.web.pojo.vo; + +public class AppCategoryRequest { + + +}