| | |
| | | |
| | | import cc.mrbird.febs.common.annotation.SubmitRepeat; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.ApiChargeListDto; |
| | | import cc.mrbird.febs.mall.dto.ApiGoChargeDto; |
| | | import cc.mrbird.febs.mall.dto.ApiGoChargeInfoDto; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | | import cc.mrbird.febs.mall.service.IRunVipService; |
| | | import cc.mrbird.febs.mall.vo.ApiChargeInfoVo; |
| | | import cc.mrbird.febs.mall.vo.ApiChargeVo; |
| | | import cc.mrbird.febs.mall.vo.ApiGoChargeVo; |
| | | import cc.mrbird.febs.mall.vo.ApiRunVipVo; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | |
| | | private final IRunVipService iRunVipService; |
| | | |
| | | @ApiOperation(value = "走路-健康", notes = "走路-健康") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiRunHealthVo.class) |
| | | }) |
| | | @GetMapping(value = "/runHealth") |
| | | public FebsResponse runHealth() { |
| | | return new FebsResponse().success().data(iRunVipService.runHealth()); |
| | | } |
| | | |
| | | @ApiOperation(value = "运动数据", notes = "运动数据") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiRunDataVo.class) |
| | | }) |
| | | @GetMapping(value = "/runData") |
| | | public FebsResponse runData() { |
| | | return new FebsResponse().success().data(iRunVipService.runData()); |
| | | } |
| | | |
| | | @ApiOperation(value = "运动日历", notes = "运动日历") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiGetRunDateVo.class) |
| | | }) |
| | | @PostMapping(value = "/getRunDate") |
| | | public FebsResponse getChargeList(@RequestBody @Valid ApiGetRunDateDto apiGetRunDateDto) { |
| | | return new FebsResponse().success().data(iRunVipService.getRunDate(apiGetRunDateDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "会员中心-购买VIP列表", notes = "会员中心-购买VIP列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiRunVipVo.class) |
| | |
| | | return new FebsResponse().success().data(iRunVipService.vipInfo()); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】基本数据", notes = "【余额充值】基本数据") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiChargeInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/getChargeInfo") |
| | | public FebsResponse getChargeInfo() { |
| | | return iRunVipService.getChargeInfo(); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】列表", notes = "【余额充值】列表") |
| | | @ApiOperation(value = "【购买VIP】列表", notes = "【购买VIP】列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiChargeVo.class) |
| | | }) |
| | | @PostMapping(value = "/getChargeList") |
| | | public FebsResponse getChargeList(@RequestBody ApiChargeListDto apiChargeListDto) { |
| | | return new FebsResponse().success().data(iRunVipService.getChargeList(apiChargeListDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "【权益升级】权益升级详情", notes = "【权益升级】权益升级详情") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiGrowInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/growInfo") |
| | | public FebsResponse growInfo() { |
| | | return iRunVipService.growInfo(); |
| | | } |
| | | |
| | | @ApiOperation(value = "【权益升级】APP支付", notes = "【权益升级】APP支付") |
| | | @PostMapping(value = "/growBuy") |
| | | @SubmitRepeat |
| | | public FebsResponse growBuy(@RequestBody @Valid ApiGrowBuyDto apiGrowBuyDto) { |
| | | return iRunVipService.growBuy(apiGrowBuyDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【权益升级】立即购买", notes = "【权益升级】立即购买") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiGoChargeVo.class) |
| | | }) |
| | | @PostMapping(value = "/growCharge") |
| | | @SubmitRepeat |
| | | public FebsResponse growCharge(@RequestBody @Valid ApiGrowChargeDto apiGrowChargeDto) { |
| | | return iRunVipService.growCharge(apiGrowChargeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】可减免金额", notes = "【购买VIP】可减免金额") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiReduceAmountVo.class) |
| | | }) |
| | | @GetMapping(value = "/reduceAmount") |
| | | public FebsResponse reduceAmount() { |
| | | return iRunVipService.reduceAmount(); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】APP支付", notes = "【购买VIP】APP支付") |
| | | @PostMapping(value = "/balanceBuy") |
| | | @SubmitRepeat |
| | | public FebsResponse balanceBuy(@RequestBody @Valid ApiBalanceBuyDto apiBalanceBuyDto) { |
| | | return iRunVipService.balanceBuy(apiBalanceBuyDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】立即购买", notes = "【购买VIP】立即购买") |
| | |
| | | return iRunVipService.goCharge(apiGoChargeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】马上支付", notes = "【余额充值】马上支付") |
| | | @ApiOperation(value = "【购买VIP】马上支付", notes = "【购买VIP】马上支付") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiGoChargeVo.class) |
| | | }) |