From 90076f0b161febf0c201d547514013c58c09fddb Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sun, 31 May 2020 20:37:36 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java | 76 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 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 4fb3ba8..7fddc94 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
@@ -6,20 +6,29 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
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.MemberUpdatePwdDto;
import com.xcong.excoin.modules.member.parameter.dto.MemberUpdateTradePwdDto;
+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.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.MemberSendCodeWayVo;
import com.xcong.excoin.modules.member.service.MemberService;
import io.swagger.annotations.Api;
@@ -175,6 +184,73 @@
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();
+ }
+
+
--
Gitblit v1.9.1