| | |
| | | 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.ApiActivityOrderListDto; |
| | | import cc.mrbird.febs.mall.dto.activity.ApiCheckOrderDto; |
| | | import cc.mrbird.febs.mall.dto.activity.ApiPayOrderAddCommentDto; |
| | | import cc.mrbird.febs.mall.service.HappyActivityService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import cc.mrbird.febs.mall.vo.activity.ApiActivityOrderInfoVo; |
| | | import cc.mrbird.febs.mall.vo.activity.ApiActivityOrderListVo; |
| | | import cc.mrbird.febs.mall.vo.activity.ApiCheckOrderVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | |
| | | @ApiOperation(value = "活动报名-新增报名人", notes = "活动报名-新增报名人") |
| | | @PostMapping(value = "/addConnect") |
| | | @Limit(key = "addConnect", period = 60, count = 1, name = "活动报名-新增报名人", prefix = "limit") |
| | | public FebsResponse addConnect(@RequestBody @Validated ApiOperateRegisterUserDto dto) { |
| | | |
| | | return happyActivityService.addConnect(dto); |
| | |
| | | |
| | | @ApiOperation(value = "活动报名-报名-创建订单", notes = "活动报名-报名-创建订单") |
| | | @PostMapping(value = "/createOrder") |
| | | @Limit(key = "createOrder", period = 60, count = 1, name = "创建订单", prefix = "limit") |
| | | public FebsResponse createOrder(@RequestBody @Validated ApiCreateOrderDto dto) { |
| | | |
| | | return happyActivityService.createOrder(dto); |
| | |
| | | |
| | | @ApiOperation(value = "活动报名-报名-支付订单", notes = "活动报名-报名-支付订单") |
| | | @PostMapping(value = "/payOrder") |
| | | @Limit(key = "payOrder", period = 60, count = 1, name = "支付订单", prefix = "limit") |
| | | public FebsResponse payOrder(@RequestBody @Validated ApiPayOrderDto dto) { |
| | | |
| | | return happyActivityService.payOrder(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的报名-列表", notes = "我的报名-列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiActivityOrderListVo.class) |
| | | }) |
| | | @PostMapping(value = "/orderList") |
| | | public FebsResponse orderList(@RequestBody ApiActivityOrderListDto dto) { |
| | | |
| | | return happyActivityService.orderList(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的报名-详情", notes = "我的报名-详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiActivityOrderInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/orderInfo/{id}") |
| | | public FebsResponse orderInfo(@PathVariable("id") Long id) { |
| | | |
| | | return happyActivityService.orderInfo(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的报名-删除", notes = "我的报名-删除") |
| | | @GetMapping(value = "/orderDelete/{id}") |
| | | public FebsResponse orderDelete(@PathVariable("id") Long id) { |
| | | |
| | | return happyActivityService.orderDelete(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "核销门票", notes = "核销门票") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiCheckOrderVo.class) |
| | | }) |
| | | @PostMapping(value = "/checkOrder") |
| | | public FebsResponse checkOrder(@RequestBody @Validated ApiCheckOrderDto dto) { |
| | | |
| | | return happyActivityService.checkOrder(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的报名-评价", notes = "我的报名-评价") |
| | | @PostMapping(value = "/addComment") |
| | | public FebsResponse addComment(@RequestBody @Validated ApiPayOrderAddCommentDto dto) { |
| | | |
| | | return happyActivityService.addComment(dto); |
| | | } |
| | | |
| | | } |