From 7e6c95babeda3c432c8ab50fb469a189b80f4baa Mon Sep 17 00:00:00 2001 From: Null <281575458@qq.com> Date: 星期四, 11 三月 2021 17:59:43 +0800 Subject: [PATCH] 便民服务商家及分类后台接口开发 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java | 97 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 92 insertions(+), 5 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java index a8e250b..f581b8b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java @@ -9,10 +9,7 @@ import com.panzhihua.common.model.vos.community.*; import com.panzhihua.common.model.vos.user.UserPhoneVO; import org.springframework.cloud.openfeign.FeignClient; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.*; /** * @program: springcloud_k8s_panzhihuazhihuishequ @@ -929,4 +926,94 @@ */ @PostMapping("detailmessage") R detailMessage(@RequestParam("id")Long id); -} + + /** + * 社区后台分页查询便民服务商家 + * @param pageComCvtBusinessDTO 查询参数 + * @return 返回结果 + */ + @PostMapping("/convenient/business/page") + R pageComCvtBusiness(@RequestBody PageComCvtBusinessDTO pageComCvtBusinessDTO); + + /** + * 添加便民服务商家信息 + * @param comCvtBusinessDTO + * @return + */ + @PostMapping("/convenient/business/add") + R addComCvtBusiness(ComCvtBusinessDTO comCvtBusinessDTO); + + + /** + * 编辑便民服务商家 + * + * @param comCvtBusinessDTO 商家参数 + * @return 返回结果 + */ + @PutMapping("/convenient/business/put") + R putComCvtBusiness(@RequestBody ComCvtBusinessDTO comCvtBusinessDTO); + + /** + * 查询便民服务商家详情 + * + * @param id 商家主键 + * @return 返回结果 + */ + @GetMapping("/convenient/business/get") + R getComCvtBusiness(@RequestParam("id") Long id); + + /** + * 删除便民服务商家信息 + * + * @param id 商家主键 + * @return 返回结果 + */ + @DeleteMapping("/convenient/business/delete") + R deleteComCvtBusiness(@RequestParam("id") Long id); + + + /** + * 社区后台分页查询便民服务分类 + * + * @param pageComCvtCategoryDTO 查询参数 + * @return 返回结果 + */ + @PostMapping("/category/page") + R pageComCvtCategory(@RequestBody PageComCvtCategoryDTO pageComCvtCategoryDTO); + + /** + * 新增便民服务分类 + * + * @param comCvtCategoryDTO 分类参数 + * @return 返回结果 + */ + @PostMapping("/category/add") + R addComCvtCategory(@RequestBody ComCvtCategoryDTO comCvtCategoryDTO); + + /** + * 编辑便民服务分类 + * + * @param comCvtCategoryDTO 分类参数 + * @return 返回结果 + */ + @PutMapping("/category/put") + R putComCvtCategory(@RequestBody ComCvtCategoryDTO comCvtCategoryDTO); + + /** + * 查询便民服务分类详情 + * + * @param id 分类主键 + * @return 返回结果 + */ + @GetMapping("/category/get") + R getComCvtCategory(@RequestParam("id") Long id); + + /** + * 删除便民服务分类信息 + * + * @param id 分类主键 + * @return 返回结果 + */ + @DeleteMapping("/category/delete") + R deleteComCvtCategory(@RequestParam("id") Long id); +} -- Gitblit v1.7.1