| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import java.time.Instant; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 分页查询便民服务商家 |
| | | * 分页查询便民服务商家 运营后台 |
| | | * @param pageConvenientMerchantDTO |
| | | * @return |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return convenientServiceCategoryService.getAllServiceCategories(); |
| | | public R getAllServiceCategories(@RequestParam("areaCode") String areaCode) { |
| | | return convenientServiceCategoryService.getAllServiceCategories(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取所有产品分类 |
| | | * @return |
| | | * @param merchantId |
| | | */ |
| | | @GetMapping("/product-category/all") |
| | | public R getAllProductCategory() { |
| | | return convenientProductCategoryService.getAllProductCategory(); |
| | | public R getAllProductCategory(@RequestParam("merchantId") Long merchantId) { |
| | | return convenientProductCategoryService.getAllProductCategory(merchantId); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/service-category/suitable") |
| | | public R getSuitableServiceCategories(@RequestParam("communityId") Long communityId) { |
| | | return convenientServiceCategoryService.getSuitableServiceCategories(communityId); |
| | | public R getSuitableServiceCategories(@RequestParam("communityId") Long communityId,@RequestParam("areaCode")String areaCode) { |
| | | return convenientServiceCategoryService.getSuitableServiceCategories(communityId,areaCode); |
| | | } |
| | | |
| | | /** |