| | |
| | | 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.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.ApiMallScoreSignRecordVo; |
| | | import cc.mrbird.febs.mall.vo.OrderListVo; |
| | | import cc.mrbird.febs.mall.vo.ScoreSignVo; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | public FebsResponse signRecordList(@RequestBody ApiMallScoreSignRecordDto apiMallScoreSignRecordDto) { |
| | | return new FebsResponse().success().data(scoreService.findMallScoreSignRecordList(apiMallScoreSignRecordDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息", notes = "绿色积分个人信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiScoreVoucherInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/memberScoreVoucherInfo") |
| | | public FebsResponse memberScoreVoucherInfo() { |
| | | return new FebsResponse().success().data(scoreService.memberScoreVoucher()); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息-买卖信息", notes = "绿色积分个人信息-买卖信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiScoreVoucherRecordVo.class) |
| | | }) |
| | | @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( @RequestBody @Validated ApiVoucherBusinessDto apiVoucherBusinessDto) { |
| | | return scoreService.voucherBusinessBuy(apiVoucherBusinessDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息-卖出", notes = "绿色积分个人信息-卖出") |
| | | @PostMapping(value = "/voucherBusinessSale") |
| | | 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); |
| | | } |
| | | |
| | | } |