From 06596e7def7c4a3826b9bea94c3fc1f53a734e7f Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期三, 09 十一月 2022 17:58:46 +0800 Subject: [PATCH] 普达纠纷管理,物业公司接口处理 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java | 65 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java index 544269a..5651b3b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java @@ -64,6 +64,9 @@ @Resource private ConvenientElevatingPointService convenientElevatingPointService; + @Resource + private ConvenientGoodsCategoryService convenientGoodsCategoryService; + /** * 社区后台分页查询便民服务商家 * @@ -739,5 +742,65 @@ @DeleteMapping("/point/delete") public R deletePoint(@RequestParam("pointId") Long pointId, @RequestParam("operator") Long operator) { return convenientElevatingPointService.deletePoint(pointId,operator); -} + } + + /** + * 便民服务详情 自提点 + * @param pointId + * @return + */ + @GetMapping("/point/detail") + public R detailPoint(@RequestParam("pointId") Long pointId) { + return convenientElevatingPointService.detailPoint(pointId); + } + + /** + * 新增商品分类 + * @param convenientGoodsCategoryDTO + * @return + */ + @PostMapping("/goodsCategory/add") + public R addGoodsCategory(@RequestBody ConvenientGoodsCategoryDTO convenientGoodsCategoryDTO) { + return convenientGoodsCategoryService.addGoodsCategory(convenientGoodsCategoryDTO); + } + + /** + * 编辑 + * @param convenientGoodsCategoryDTO + * @return + */ + @PutMapping("/goodsCategory/put") + public R putGoodsCategory(@RequestBody ConvenientGoodsCategoryDTO convenientGoodsCategoryDTO) { + return convenientGoodsCategoryService.putGoodsCategory(convenientGoodsCategoryDTO); + } + + /** + * 删除商品分类 + * @param categoryId + * @return + */ + @DeleteMapping("/goodsCategory/delete") + public R deleteGoodsCategory(@RequestParam("categoryId") Long categoryId, @RequestParam("operator") Long operator) { + return convenientGoodsCategoryService.deleteGoodsCategoryById(categoryId, operator); + } + + /** + * 获取商品分类详情 + * @param categoryId + * @return + */ + @GetMapping("/goodsCategory/get") + public R getGoodsCategory(@RequestParam("categoryId") Long categoryId) { + return convenientGoodsCategoryService.getGoodsCategoryById(categoryId); + } + + /** + * 分页查询商品分类 + * @param pageConvenientGoodsCategoryDTO + * @return + */ + @PostMapping("/goodsCategory/page") + public R pageGoodsCategory(@RequestBody PageConvenientGoodsCategoryDTO pageConvenientGoodsCategoryDTO) { + return convenientGoodsCategoryService.pageGoodsCategory(pageConvenientGoodsCategoryDTO); + } } -- Gitblit v1.7.1