| | |
| | | |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.DisableOrEnableMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsEvaluateDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsInformationDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.PageMcsProductDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetPopularForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForGameDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForInfoDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.SetShelfForProductDTO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsConfigVO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.scheduling.annotation.Async; |
| | |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/information/delete") |
| | | R deleteMcsInfo(@RequestParam("infoId") Long infoId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 分页查询评价记录 |
| | | * @param pageMcsEvaluateDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/evaluate/page") |
| | | R pageMcsEvaluate(@RequestBody PageMcsEvaluateDTO pageMcsEvaluateDTO); |
| | | |
| | | /** |
| | | * 查询评价记录详情 |
| | | * @param evaluateId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/evaluate/get") |
| | | R getMcsEvaluate(@RequestParam("evaluateId") Long evaluateId); |
| | | |
| | | /** |
| | | * 删除评价记录 |
| | | * @param evaluateId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/evaluate/delete") |
| | | R deleteMcsEvaluate(@RequestParam("evaluateId") Long evaluateId); |
| | | |
| | | /** |
| | | * 新增戳戳游戏 |
| | | * @param mcsGameDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/game/add") |
| | | R addMcsGame(@RequestBody McsGameDTO mcsGameDTO); |
| | | |
| | | /** |
| | | * 编辑戳戳游戏 |
| | | * @param mcsGameDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/game/put") |
| | | R putMcsGame(@RequestBody McsGameDTO mcsGameDTO); |
| | | |
| | | /** |
| | | * 发布戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/game/publish") |
| | | R publishMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 结束戳戳游戏 |
| | | * @param gameId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/game/finish") |
| | | R finishMcsGame(@RequestParam("gameId") Long gameId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 戳戳游戏/资讯顶部统计数据 |
| | | * @param type |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/statistics/top") |
| | | R getTopStatistics(@RequestParam("type") Integer type, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 新增戳戳资讯 |
| | | * @param mcsInfoDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/information/add") |
| | | R addMcsInfo(@RequestBody McsInfoDTO mcsInfoDTO); |
| | | |
| | | /** |
| | | * 编辑戳戳资讯 |
| | | * @param mcsInfoDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/information/put") |
| | | R putMcsInfo(@RequestBody McsInfoDTO mcsInfoDTO); |
| | | |
| | | /** |
| | | * 发布戳戳资讯 |
| | | * @param infoId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/microcommercialstreet/information/publish") |
| | | R publishMcsInfo(@RequestParam("infoId") Long infoId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 新增产品信息 |
| | | * @param mcsProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/product/add") |
| | | R addMcsProduct(@RequestBody McsProductDTO mcsProductDTO); |
| | | |
| | | /** |
| | | * 编辑产品信息 |
| | | * @param mcsProductDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/product/put") |
| | | R putMcsProduct(@RequestBody McsProductDTO mcsProductDTO); |
| | | |
| | | /** |
| | | * 删除产品信息 |
| | | * @param productId |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/microcommercialstreet/product/delete") |
| | | R deleteMcsProduct(@RequestParam("productId") Long productId, @RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 上架/下架产品信息 |
| | | * @param setShelfForProductDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("/microcommercialstreet/product/setShelf") |
| | | R setShelfForMcsProduct(@RequestBody SetShelfForProductDTO setShelfForProductDTO); |
| | | |
| | | /** |
| | | * 分页查询产品信息 |
| | | * @param pageMcsProductDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/microcommercialstreet/product/page") |
| | | R pageMcsProduct(@RequestBody PageMcsProductDTO pageMcsProductDTO); |
| | | } |