| | |
| | | import cc.mrbird.febs.common.annotation.Limit; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | | import cc.mrbird.febs.mall.dto.activity.ApiActivityCommentDto; |
| | | import cc.mrbird.febs.mall.dto.activity.ApiOperateValidRegisterActivityDto; |
| | | import cc.mrbird.febs.mall.dto.activity.ApiVoteOptionInPageDto; |
| | | import cc.mrbird.febs.mall.dto.activity.ApiVoteOptionRecordInPageDto; |
| | | import cc.mrbird.febs.mall.service.HappyActivityService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import cc.mrbird.febs.mall.vo.activity.ApiActivityCommentVo; |
| | | import cc.mrbird.febs.mall.vo.activity.ApiVoteActivityHotVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | return happyActivityService.activityInfo(dto); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "活动评价", notes = "活动评价") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiActivityCommentVo.class) |
| | | }) |
| | | @PostMapping(value = "/commentByActivityId") |
| | | public FebsResponse commentByActivityId(@RequestBody ApiActivityCommentDto dto) { |
| | | return new FebsResponse().success().data(happyActivityService.commentByActivityId(dto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "点赞关注转发", notes = "点赞关注转发") |
| | | @PostMapping(value = "/operateDo") |
| | | @Limit(key = "operateDo", period = 60, count = 1, name = "点赞关注转发接口", prefix = "limit") |
| | | public FebsResponse operateDo(@RequestBody @Validated ApiOperateDoDto dto) { |
| | | |
| | | return happyActivityService.operateDo(dto); |
| | |
| | | |
| | | @ApiOperation(value = "投票活动-选项投票", notes = "投票活动-选项投票") |
| | | @PostMapping(value = "/operateVote") |
| | | @Limit(key = "operateVote", period = 60, count = 1, name = "投票接口", prefix = "limit") |
| | | public FebsResponse operateVote(@RequestBody @Validated ApiOperateVoteDto dto) { |
| | | |
| | | return happyActivityService.operateVote(dto); |
| | |
| | | return happyActivityService.voteRecordInPage(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "投票活动-报名-验证", notes = "投票活动-报名-验证") |
| | | @PostMapping(value = "/operateValidRegister") |
| | | public FebsResponse operateValidRegister(@RequestBody @Validated ApiOperateValidRegisterActivityDto dto) { |
| | | |
| | | return happyActivityService.operateValidRegister(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "投票活动-报名", notes = "投票活动-报名") |
| | | @PostMapping(value = "/operateRegister") |
| | | public FebsResponse operateRegister(@RequestBody @Validated ApiOperateRegisterActivityDto dto) { |