| | |
| | | package cc.mrbird.febs.mall.controller; |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.ApiMallScoreSignRecordDto; |
| | | import cc.mrbird.febs.mall.dto.ApiScoreVoucherRecordDto; |
| | | import cc.mrbird.febs.mall.dto.ApiVoucherBusinessDto; |
| | | import cc.mrbird.febs.mall.dto.OrderListDto; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | | import cc.mrbird.febs.mall.service.ICommonService; |
| | | import cc.mrbird.febs.mall.service.IScoreService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiScoreVoucherInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/memberScoreVoucher") |
| | | public FebsResponse memberScoreVoucher() { |
| | | @GetMapping(value = "/memberScoreVoucherInfo") |
| | | public FebsResponse memberScoreVoucherInfo() { |
| | | return new FebsResponse().success().data(scoreService.memberScoreVoucher()); |
| | | } |
| | | |
| | |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiScoreVoucherRecordVo.class) |
| | | }) |
| | | @PostMapping(value = "/memberScoreVoucher") |
| | | public FebsResponse memberScoreVoucher(@RequestBody ApiScoreVoucherRecordDto apiScoreVoucherRecordDto) { |
| | | @PostMapping(value = "/memberScoreVoucherList") |
| | | public FebsResponse memberScoreVoucherList(@RequestBody ApiScoreVoucherRecordDto apiScoreVoucherRecordDto) { |
| | | return new FebsResponse().success().data(scoreService.findMallScoreVoucherList(apiScoreVoucherRecordDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息-买入", notes = "绿色积分个人信息-买入") |
| | | @PostMapping(value = "/voucherBusinessBuy") |
| | | public FebsResponse voucherBusinessBuy(@Valid @RequestBody ApiVoucherBusinessDto apiVoucherBusinessDto) { |
| | | public FebsResponse voucherBusinessBuy( @RequestBody @Validated ApiVoucherBusinessDto apiVoucherBusinessDto) { |
| | | return scoreService.voucherBusinessBuy(apiVoucherBusinessDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息-卖出", notes = "绿色积分个人信息-卖出") |
| | | @PostMapping(value = "/voucherBusinessSale") |
| | | public FebsResponse voucherBusinessSale(@Valid @RequestBody ApiVoucherBusinessDto apiVoucherBusinessDto) { |
| | | public FebsResponse voucherBusinessSale( @RequestBody @Validated ApiVoucherBusinessDto apiVoucherBusinessDto) { |
| | | return scoreService.voucherBusinessSale(apiVoucherBusinessDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "提现") |
| | | @PostMapping(value = "/withdrawal") |
| | | public FebsResponse withdrawal(@RequestBody @Validated WithdrawalDto withdrawalDto) { |
| | | scoreService.withdrawal(withdrawalDto); |
| | | return new FebsResponse().success().message("提交成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息-个人买卖信息", notes = "绿色积分个人信息-个人买卖信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiScoreVoucherRecordVo.class) |
| | | }) |
| | | @PostMapping(value = "/scoreVoucherList") |
| | | public FebsResponse scoreVoucherList(@RequestBody ApiScoreVoucherRecordDto apiScoreVoucherRecordDto) { |
| | | return scoreService.findMallScoreVoucherListInPage(apiScoreVoucherRecordDto); |
| | | } |
| | | |
| | | } |