| | |
| | | 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 org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/merchant/classify") |
| | | public R getClassifyMerchants(PageClassifyMerchantDTO pageClassifyMerchantDTO) { |
| | | public R getClassifyMerchants(@RequestBody PageClassifyMerchantDTO pageClassifyMerchantDTO) { |
| | | return convenientMerchantService.getClassifyMerchants(pageClassifyMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 小程序获取商家详情 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/merchant/detail") |
| | | public R getMerchantDetail(@RequestParam("merchantId") Long merchantId) { |
| | | return convenientMerchantService.getMerchantDetail(merchantId); |
| | | } |
| | | |
| | | /** |
| | | * 小程序获取商家产品 |
| | | * @param pageMerchantProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/merchant/product") |
| | | public R getMerchantProduct(@RequestBody PageMerchantProductDTO pageMerchantProductDTO) { |
| | | return convenientProductService.getMerchantProduct(pageMerchantProductDTO); |
| | | } |
| | | } |