From d393c94496173ec3f5ae298290d4f017eb3ec691 Mon Sep 17 00:00:00 2001 From: puhanshu <hansgoallout@163.com> Date: 星期二, 21 九月 2021 22:43:21 +0800 Subject: [PATCH] 便民服务商家后台 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 95 insertions(+), 0 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 a1c5e15..5ecd022 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 @@ -4,9 +4,15 @@ import com.panzhihua.common.model.dtos.community.*; import com.panzhihua.common.model.dtos.community.convenient.ConvenientMerchantDTO; +import com.panzhihua.common.model.dtos.community.convenient.ConvenientProductCategoryDTO; +import com.panzhihua.common.model.dtos.community.convenient.ConvenientProductDTO; import com.panzhihua.common.model.dtos.community.convenient.ConvenientServiceCategoryDTO; +import com.panzhihua.common.model.dtos.community.convenient.DeleteConvenientProductDTO; import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO; +import com.panzhihua.common.model.dtos.community.convenient.OnShelfOrOffShelfProductDTO; import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO; +import com.panzhihua.common.model.dtos.community.convenient.PageConvenientProductCategoryDTO; +import com.panzhihua.common.model.dtos.community.convenient.PageConvenientProductDTO; import com.panzhihua.common.model.dtos.community.convenient.PageConvenientServiceCategoryDTO; import com.panzhihua.common.model.dtos.community.convenient.ResetPasswordConvenientMerchantDTO; import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussDetailDTO; @@ -5820,4 +5826,93 @@ */ @GetMapping("/convenient/merchantInfo") R<ConvenientMerchantVO> getUserConvenientMerchantInfo(@RequestParam("userId") Long userId); + + /** + * 新增便民服务产品分类信息 + * @param convenientProductCategoryDTO + * @return + */ + @PostMapping("/convenient/product-category/add") + R addProductCategory(@RequestBody ConvenientProductCategoryDTO convenientProductCategoryDTO); + + /** + * 编辑便民服务产品分类信息 + * @param convenientProductCategoryDTO + * @return + */ + @PutMapping("/convenient/product-category/put") + R putProductCategory(@RequestBody ConvenientProductCategoryDTO convenientProductCategoryDTO); + + /** + * 删除便民服务产品分类信息 + * @param categoryId + * @param operator + * @return + */ + @DeleteMapping("/convenient/product-category/delete") + R deleteProductCategory(@RequestParam("categoryId") Long categoryId, @RequestParam("operator") Long operator); + + /** + * 获取便民服务产品分类详情 + * @param categoryId + * @return + */ + @GetMapping("/convenient/product-category/get") + R getProductCategory(@RequestParam("categoryId") Long categoryId); + + /** + * 分页查询便民服务产品分类信息 + * @param pageConvenientProductCategoryDTO + * @return + */ + @PostMapping("/convenient/product-category/page") + R pageProductCategory(@RequestBody PageConvenientProductCategoryDTO pageConvenientProductCategoryDTO); + + /** + * 便民服务商家后台新增产品 + * @param convenientProductDTO + * @return + */ + @PostMapping("/convenient/product/add") + R addProduct(@RequestBody ConvenientProductDTO convenientProductDTO); + + /** + * 便民服务商家后台编辑产品 + * @param convenientProductDTO + * @return + */ + @PutMapping("/convenient/product/put") + R putProduct(@RequestBody ConvenientProductDTO convenientProductDTO); + + /** + * 便民服务商家后台获取产品详情 + * @param productId + * @return + */ + @GetMapping("/convenient/product/get") + R getProduct(@RequestParam("productId") Long productId); + + /** + * 便民服务商家后台分页获取产品信息 + * @param pageConvenientProductDTO + * @return + */ + @PostMapping("/convenient/product/page") + R pageProduct(@RequestBody PageConvenientProductDTO pageConvenientProductDTO); + + /** + * 便民服务商家后台删除产品信息 + * @param deleteConvenientProductDTO + * @return + */ + @DeleteMapping("/convenient/product/delete") + R deleteProduct(@RequestBody DeleteConvenientProductDTO deleteConvenientProductDTO); + + /** + * 便民服务商家后台上架/下架产品 + * @param onShelfOrOffShelfProductDTO + * @return + */ + @PutMapping("/convenient/product/onShelf-or-offShelf") + R onShelfOrOffShelfProduct(@RequestBody OnShelfOrOffShelfProductDTO onShelfOrOffShelfProductDTO); } -- Gitblit v1.7.1