| | |
| | | import javax.validation.Valid; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageClassifyMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageMerchantProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PagePopularMerchantDTO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientProductVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientServiceCategoryVO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | public R getClassifyMerchants(@RequestBody @Valid PageClassifyMerchantDTO pageClassifyMerchantDTO) { |
| | | return communityService.getClassifyMerchants(pageClassifyMerchantDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "商家详情", response = ConvenientMerchantVO.class) |
| | | @GetMapping("/merchant/detail") |
| | | public R getMerchantDetail(@RequestParam("merchantId") Long merchantId) { |
| | | return communityService.getMerchantDetail(merchantId); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页获取商家产品", response = ConvenientProductVO.class) |
| | | @PostMapping("/merchant/product") |
| | | public R getMerchantProduct(@RequestBody @Valid PageMerchantProductDTO pageMerchantProductDTO) { |
| | | return communityService.getMerchantProduct(pageMerchantProductDTO); |
| | | } |
| | | } |