| | |
| | | |
| | | 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.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) |
| | |
| | | @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 = "【权益升级】余额支付", notes = "【权益升级】余额支付") |
| | | @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】余额支付", notes = "【购买VIP】余额支付") |
| | | @PostMapping(value = "/balanceBuy") |
| | | @SubmitRepeat |
| | | public FebsResponse balanceBuy(@RequestBody @Valid ApiBalanceBuyDto apiBalanceBuyDto) { |
| | | return iRunVipService.balanceBuy(apiBalanceBuyDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【购买VIP】立即购买", notes = "【购买VIP】立即购买") |
| | |
| | | public FebsResponse goChargeInfo(@RequestBody @Valid ApiGoChargeInfoDto apiGoChargeInfoDto) { |
| | | return iRunVipService.goChargeInfo(apiGoChargeInfoDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【充值USDT】立即购买", notes = "【充值USDT】立即购买") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiGoChargeVo.class) |
| | | }) |
| | | @PostMapping(value = "/goChargeUSDT") |
| | | @SubmitRepeat |
| | | public FebsResponse goChargeUSDT(@RequestBody @Valid ApiGoChargeUSDTDto apiGoChargeDto) { |
| | | return iRunVipService.goChargeUSDT(apiGoChargeDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "【充值USDT】马上支付", notes = "【充值USDT】马上支付") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiGoChargeVo.class) |
| | | }) |
| | | @PostMapping(value = "/goChargeUSDTInfo") |
| | | @SubmitRepeat |
| | | public FebsResponse goChargeUSDTInfo(@RequestBody @Valid ApiGoChargeInfoDto apiGoChargeInfoDto) { |
| | | return iRunVipService.goChargeUSDTInfo(apiGoChargeInfoDto); |
| | | } |
| | | } |