| | |
| | | package cc.mrbird.febs.mall.controller; |
| | | |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.mall.dto.ForgetPwdDto; |
| | | import cc.mrbird.febs.mall.dto.ModifyMemberInfoDto; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | | import cc.mrbird.febs.mall.entity.MallMemberPayment; |
| | | import cc.mrbird.febs.mall.service.IApiMallMemberService; |
| | | import cc.mrbird.febs.mall.vo.MallMemberVo; |
| | | import cc.mrbird.febs.mall.vo.MoneyFlowVo; |
| | | import cc.mrbird.febs.mall.vo.TeamListVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import io.swagger.annotations.ApiResponses; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "我的团队列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = TeamListVo.class) |
| | | }) |
| | | @PostMapping(value = "/teamList") |
| | | public FebsResponse teamList() { |
| | | return null; |
| | | public FebsResponse teamList(@RequestBody TeamListDto teamListDto) { |
| | | return memberService.teamList(teamListDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "资金流水列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MoneyFlowVo.class) |
| | | }) |
| | | @PostMapping(value = "/moneyFlow") |
| | | public FebsResponse moneyFlow(@RequestBody MoneyFlowDto moneyFlowDto) { |
| | | return memberService.moneyFlows(moneyFlowDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "转账") |
| | | @PostMapping(value = "/transfer") |
| | | public FebsResponse transfer(@RequestBody @Validated TransferDto transferDto) { |
| | | memberService.transfer(transferDto); |
| | | return new FebsResponse().success().message("转账成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "提现") |
| | | @PostMapping(value = "/withdrawal") |
| | | public FebsResponse withdrawal(@RequestBody @Validated WithdrawalDto withdrawalDto) { |
| | | memberService.withdrawal(withdrawalDto); |
| | | return new FebsResponse().success().message("提交成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置收款方式") |
| | | @PostMapping(value = "/setPayment") |
| | | public FebsResponse setPayment(@RequestBody MallMemberPayment mallMemberPayment) { |
| | | memberService.setPayment(mallMemberPayment); |
| | | return new FebsResponse().success().message("设置成功"); |
| | | } |
| | | } |