| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import java.time.Instant; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/service-category/all") |
| | | public R getAllServiceCategories() { |
| | | return convenientServiceCategoryService.getAllServiceCategories(); |
| | | public R getAllServiceCategories(@RequestParam("areaCode") String areaCode) { |
| | | return convenientServiceCategoryService.getAllServiceCategories(areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @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); |
| | | } |
| | | |
| | | /** |