| | |
| | | import cc.mrbird.febs.mall.dto.activity.ApiVoteOptionInPageDto; |
| | | import cc.mrbird.febs.mall.service.HappyActivityService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import cc.mrbird.febs.mall.vo.activity.ApiVoteActivityHotVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | return happyActivityService.voteOptionInPage(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "投票活动-活动热度", notes = "投票活动-活动热度") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiVoteActivityHotVo.class) |
| | | }) |
| | | @GetMapping(value = "/voteActivityHot/{id}") |
| | | public FebsResponse voteActivityHot(@PathVariable("id") Long id) { |
| | | |
| | | return happyActivityService.voteActivityHot(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "投票活动-选项详情", notes = "投票活动-选项详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiActivityOptionVo.class) |
| | |
| | | return happyActivityService.voteRecordInPage(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "投票活动-报名", notes = "投票活动-报名") |
| | | @PostMapping(value = "/operateRegister") |
| | | public FebsResponse operateRegister(@RequestBody @Validated ApiOperateRegisterActivityDto dto) { |
| | | |
| | | return happyActivityService.operateRegister(dto); |
| | | } |
| | | |
| | | } |