From f97a701a3cceed8cb86fce14124c1c67a0f59ae0 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 08 Jun 2020 12:03:23 +0800 Subject: [PATCH] 20200608 代码提交 --- src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java | 253 ++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 221 insertions(+), 32 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java b/src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java index 509615d..842132f 100644 --- a/src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java +++ b/src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java @@ -10,14 +10,33 @@ import org.springframework.web.bind.annotation.RestController; import com.xcong.excoin.common.response.Result; +import com.xcong.excoin.modules.member.parameter.dto.MemberAddCoinAddressDto; import com.xcong.excoin.modules.member.parameter.dto.MemberAuthenticationDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberBindEmailDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberBindPhoneDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberDelCoinAddressDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberDelPaymethodDto; import com.xcong.excoin.modules.member.parameter.dto.MemberForgetPwdDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberPaymethodDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberSubmitCoinApplyDto; import com.xcong.excoin.modules.member.parameter.dto.MemberUpdatePwdDto; import com.xcong.excoin.modules.member.parameter.dto.MemberUpdateTradePwdDto; +import com.xcong.excoin.modules.member.parameter.dto.MemberUpdateTradersPwdTimeDto; +import com.xcong.excoin.modules.member.parameter.vo.MemberAuthenticationInfoVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberAvivableCoinInfoVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberCoinAddressCountListVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberCoinAddressListVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberCoinInfoListVo; import com.xcong.excoin.modules.member.parameter.vo.MemberInfoVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberPaymethodDetailListVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberPaymethodDetailVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberPersonCenterInfoVo; +import com.xcong.excoin.modules.member.parameter.vo.MemberSendCodeWayVo; import com.xcong.excoin.modules.member.service.MemberService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; @@ -60,6 +79,20 @@ } /** + * 验证账户是否存在 + * @return + */ + @ApiOperation(value="验证账户是否存在", notes="验证账户是否存在") + @ApiImplicitParams({ + @ApiImplicitParam(name = "account", value = "账号", required = true, dataType = "String", paramType="query"), + @ApiImplicitParam(name = "type", value = "类型 1:手机号 2:邮箱", required = true, dataType = "int", paramType="query") + }) + @GetMapping(value = "/getMemberAccountInfo") + public Result getMemberAccountInfo(String account,int type) { + return memberService.getMemberAccountInfo(account,type); + } + + /** * 修改密码 * @return */ @@ -69,6 +102,28 @@ //System.out.println("修改密码:"); return memberService.memberUpdatePwd(memberUpdatePwdDto); } + + /** + * 修改资金密码时效性 + * @return + */ + @ApiOperation(value="修改资金密码时效性", notes="修改资金密码时效性") + @PostMapping(value="/memberUpdateTradersPwdTime") + public Result memberUpdateTradersPwdTime(@RequestBody @Valid MemberUpdateTradersPwdTimeDto memberUpdateTradersPwdTimeDto) { + //System.out.println("修改密码:"); + return memberService.memberUpdateTradersPwdTime(memberUpdateTradersPwdTimeDto); + } + + /** + * 获取实名认证信息 + * @return + */ + @ApiOperation(value = "获取实名认证信息", notes = "获取实名认证信息") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberAuthenticationInfoVo.class)}) + @GetMapping(value = "/memberAuthenticationInfo") + public Result memberAuthenticationInfo() { + return memberService.memberAuthenticationInfo(); + } /** * 实名认证 @@ -108,46 +163,180 @@ * @return */ @ApiOperation(value="设置交易密码", notes="设置交易密码") - @PostMapping(value="/memberUpdateTradePwd") - @RequestMapping(value="/memberTradersPwd") + @PostMapping(value="/memberTradersPwd") public Result memberTradersPwd(@RequestBody @Valid MemberForgetPwdDto memberForgetPwdDto) { return memberService.memberTradersPwd(memberForgetPwdDto); } + /** + * 收款方式 + * @return + */ + @ApiOperation(value="新增收款方式", notes="新增收款方式") + @PostMapping(value="/memberAddPaymethod") + public Result memberAddPaymethod(@RequestBody @Valid MemberPaymethodDto memberPaymethodDto) { + return memberService.memberAddPaymethod(memberPaymethodDto); + } + /** + * 收款方式 + * @return + */ + @ApiOperation(value="删除收款方式", notes="删除收款方式") + @PostMapping(value="/memberDelPaymethod") + public Result memberDelPaymethod(@RequestBody @Valid MemberDelPaymethodDto memberDelPaymethodDto) { + return memberService.memberDelPaymethod(memberDelPaymethodDto); + } + /** + * 收款方式 + * @return + */ + @ApiOperation(value="一个收款方式的详情", notes="一个收款方式的详情") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberPaymethodDetailVo.class)}) + @ApiImplicitParams({ + @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "long", paramType="query") + }) + @GetMapping(value = "/memberPaymethodDetail") + public Result memberPaymethodDetail(long id) { + return memberService.memberPaymethodDetail(id); + } + /** + * 收款方式 + * @return + */ + @ApiOperation(value="收款方式的列表", notes="收款方式的列表") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberPaymethodDetailListVo.class)}) + @GetMapping(value = "/memberPaymethodDetailList") + public Result memberPaymethodDetailList() { + return memberService.memberPaymethodDetailList(); + } + /** + * 绑定手机号 + * @return + */ + @ApiOperation(value="绑定手机号", notes="绑定手机号") + @PostMapping(value="/memberBindPhone") + public Result memberBindPhone(@RequestBody @Valid MemberBindPhoneDto memberBindPhoneDto) { + return memberService.memberBindPhone(memberBindPhoneDto); + } + /** + * 绑定邮箱 + * @return + */ + @ApiOperation(value="绑定邮箱", notes="绑定邮箱") + @PostMapping(value="/memberBindEmail") + public Result memberBindEmail(@RequestBody @Valid MemberBindEmailDto memberBindEmailDto) { + return memberService.memberBindEmail(memberBindEmailDto); + } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + /** + * 获取币种地址 + * @return + */ + @ApiOperation(value = "获取币种地址数量", notes = "获取币种地址数量") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberCoinAddressCountListVo.class)}) + @GetMapping(value = "/memberCoinAddressCount") + public Result memberCoinAddressCount() { + return memberService.memberCoinAddressCount(); + } + + /** + * 获取提币地址 + * @return + */ + @ApiOperation(value = "获取提币地址列表", notes = "获取提币地址列表") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberCoinAddressListVo.class)}) + @ApiImplicitParams({ + @ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query") + }) + @GetMapping(value = "/memberCoinAddressList") + public Result memberCoinAddressList(String symbol) { + return memberService.memberCoinAddressList(symbol); + } + + /** + * 添加提币地址 + * @return + */ + @ApiOperation(value = "添加提币地址", notes = "添加提币地址") + @PostMapping(value = "/memberAddCoinAddress") + public Result memberAddCoinAddress(@RequestBody @Valid MemberAddCoinAddressDto memberAddCoinAddressDto) { + return memberService.memberAddCoinAddress(memberAddCoinAddressDto); + } + + /** + * 删除提币地址 + * @return + */ + @ApiOperation(value="删除提币地址", notes="删除提币地址") + @PostMapping(value="/memberDelCoinAddress") + public Result memberDelCoinAddress(@RequestBody @Valid MemberDelCoinAddressDto memberDelCoinAddressDto) { + return memberService.memberDelCoinAddress(memberDelCoinAddressDto); + } + + /** + * 获取发送验证码途径 + * @return + */ + @ApiOperation(value = "获取发送验证码途径", notes = "获取发送验证码途径") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberSendCodeWayVo.class)}) + @GetMapping(value = "/memberSendCodeWay") + public Result memberSendCodeWay() { + return memberService.memberSendCodeWay(); + } + + /** + * 获取个人中心信息 + * @return + */ + @ApiOperation(value = "获取个人中心信息", notes = "获取个人中心信息") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberPersonCenterInfoVo.class)}) + @GetMapping(value = "/memberPersonCenterInfo") + public Result memberPersonCenterInfo() { + return memberService.memberPersonCenterInfo(); + } + + /** + * 提币币种信息 + * @return + */ + @ApiOperation(value = "获取提币币种信息", notes = "获取提币币种信息") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberCoinInfoListVo.class)}) + @GetMapping(value = "/memberCoinInfoList") + public Result memberCoinInfoList() { + return memberService.memberCoinInfoList(); + } + + /** + * 提币币种可用资金 + * @param token + * @param coinVo + * @return + */ + @ApiOperation(value = "提币币种可用资金", notes = "提币币种可用资金") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberAvivableCoinInfoVo.class)}) + @ApiImplicitParams({ + @ApiImplicitParam(name = "symbol", value = "币种", required = true, dataType = "String", paramType="query") + }) + @GetMapping(value = "/memberAvivableCoinInfo") + public Result memberAvivableCoinInfo(String symbol) { + return memberService.memberAvivableCoinInfo(symbol); + } + + /** + * 提币申请 + * @param token + * @param coinVo + * @return + */ + @ApiOperation(value="提交提币申请", notes="提交提币申请") + @PostMapping(value="/memberSubmitCoinApply") + public Result memberSubmitCoinApply(@RequestBody @Valid MemberSubmitCoinApplyDto memberSubmitCoinApplyDto) { + return memberService.memberSubmitCoinApply(memberSubmitCoinApplyDto); + } + } -- Gitblit v1.9.1