| | |
| | | import com.panzhihua.common.model.dtos.community.convenient.ConvenientServiceCategoryDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.DeleteConvenientProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ExportMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.OnShelfOrOffShelfProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageClassifyMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientProductCategoryDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientServiceCategoryDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageMerchantProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PagePopularMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageSearchDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ResetPasswordConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussDetailDTO; |
| | | import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussPublishResultDTO; |
| | | import com.panzhihua.common.model.dtos.neighbor.*; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import com.panzhihua.common.model.vos.community.questnaire.EditComActQuestnaireVo; |
| | | import com.panzhihua.common.model.vos.community.questnaire.QuestnaireVO; |
| | | import com.panzhihua.common.model.vos.community.questnaire.UsersAnswerQuestnaireVO; |
| | | import com.panzhihua.common.model.vos.community.reserve.*; |
| | | import com.panzhihua.common.model.vos.neighbor.AddNeighborCircleAdminVO; |
| | | import com.panzhihua.common.model.vos.neighbor.ChangeCommentReplyStatusByAdminVO; |
| | | import com.panzhihua.common.model.vos.neighbor.ChangeCommentStatusByAdminVO; |
| | |
| | | |
| | | /** |
| | | * 获取商家产品 |
| | | * @param pageMerchantProductDTO |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @PostMapping("/convenient/merchant/product") |
| | | R getMerchantProduct(@RequestBody PageMerchantProductDTO pageMerchantProductDTO); |
| | | @GetMapping("/convenient/product/list") |
| | | R getMerchantProduct(@RequestParam("merchantId") Long merchantId); |
| | | |
| | | /** |
| | | * 获取产品详情 |
| | | * @param productId |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/product/detail") |
| | | R getProductDetail(@RequestParam("productId") Long productId); |
| | | |
| | | /** |
| | | * 搜索商家信息 |
| | | * @param pageSearchDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/convenient/merchant/search") |
| | | R pageSearchMerchant(@RequestBody PageSearchDTO pageSearchDTO); |
| | | |
| | | /** |
| | | * 搜索商品信息 |
| | | * @param pageSearchDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/convenient/product/search") |
| | | R pageSearchProduct(@RequestBody PageSearchDTO pageSearchDTO); |
| | | |
| | | /** |
| | | * 增加商家店铺咨询量 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/merchant/consult") |
| | | R consultMerchant(@RequestParam("merchantId") Long merchantId); |
| | | |
| | | /** |
| | | * 增加产品浏览量 |
| | | * @param productId |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/product/incr-view") |
| | | R incrProductView(@RequestParam("productId") Long productId); |
| | | |
| | | /** |
| | | * 获取商家导出数据 |
| | | * @param exportMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/convenient/merchant/export") |
| | | R exportMerchant(@RequestBody ExportMerchantDTO exportMerchantDTO); |
| | | |
| | | /** |
| | | * 增加商家店铺浏览量 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/merchant/incr-view") |
| | | R incrMerchantView(@RequestParam("merchantId") Long merchantId); |
| | | |
| | | /** |
| | | * 定时任务每隔半小时将商家浏览量和咨询量总值计入指定商家数据中 |
| | | * @return |
| | | */ |
| | | @PostMapping("/convenient/timedTaskWriteDataToMerchantJobHandler") |
| | | R timedTaskWriteDataToMerchantJobHandler(); |
| | | |
| | | /** |
| | | * 获取商家上下架产品数量 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/convenient/product/shelf-num") |
| | | R getProductShelfNum(@RequestParam("merchantId") Long merchantId); |
| | | } |