| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import java.time.Instant; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | */ |
| | | @PostMapping("/merchant/add") |
| | | public R addMerchant(@RequestBody ConvenientMerchantDTO convenientMerchantDTO) { |
| | | log.error("catTimeStamp进入service_community" + convenientMerchantDTO.getAccount() + Instant.now().toEpochMilli()); |
| | | return convenientMerchantService.addMerchant(convenientMerchantDTO); |
| | | } |
| | | |
| | |
| | | /** |
| | | * 获取所有产品分类 |
| | | * @return |
| | | * @param merchantId |
| | | */ |
| | | @GetMapping("/product-category/all") |
| | | public R getAllProductCategory() { |
| | | return convenientProductCategoryService.getAllProductCategory(); |
| | | public R getAllProductCategory(@RequestParam("merchantId") Long merchantId) { |
| | | return convenientProductCategoryService.getAllProductCategory(merchantId); |
| | | } |
| | | |
| | | /** |