| | |
| | | |
| | | 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; |
| | |
| | | */ |
| | | @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); |
| | | } |