From 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 30 Sep 2024 16:57:22 +0800 Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea --- src/main/java/com/xcong/excoin/modules/member/controller/MemberController.java | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 50 insertions(+), 3 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 89cbd89..3affd5a 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,6 +6,7 @@ import com.xcong.excoin.modules.coin.parameter.dto.RecordsPageDto; import com.xcong.excoin.modules.member.parameter.dto.*; import com.xcong.excoin.modules.member.parameter.vo.*; +import com.xcong.excoin.modules.member.vo.DefaultWayVo; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -210,6 +211,21 @@ public Result memberPaymethodDetailList() { return memberService.memberPaymethodDetailList(); } + + @ApiOperation(value = "设置为默认收款方式") + @PostMapping(value = "/setDefaultMethod/{id}") + public Result setDefaultMethod(@PathVariable("id") Long id) { + return memberService.setDefaultPaymethod(id); + } + + @ApiOperation(value = "获取我的默认收款方式", notes = "获取我的默认收款方式") + @ApiResponses({ + @ApiResponse(code = 200, message = "获取成功", response = DefaultWayVo.class) + }) + @GetMapping(value = "/findDefaultWay") + public Result findDefaultWay() { + return memberService.findDefaultWay(); + } /** * 绑定手机号 @@ -330,8 +346,8 @@ @ApiOperation(value="提交提币申请", notes="提交提币申请") @PostMapping(value="/memberSubmitCoinApply") public Result memberSubmitCoinApply(@RequestBody @Valid MemberSubmitCoinApplyDto memberSubmitCoinApplyDto) { - return Result.fail("暂未开放提币"); -// return memberService.memberSubmitCoinApply(memberSubmitCoinApplyDto); +// return Result.fail("暂未开放提币"); + return memberService.memberSubmitCoinApply(memberSubmitCoinApplyDto); } /** @@ -355,5 +371,36 @@ public Result memberCoinAddressInList() { return memberService.memberCoinAddressInList(); } - + + /** + * 添加内转提币地址 + * @return + */ + @ApiOperation(value = "添加内转提币地址", notes = "添加内转提币地址") + @PostMapping(value = "/memberAddCoinAddressIn") + public Result memberAddCoinAddressIn(@RequestBody @Valid MemberAddCoinAddressInDto memberAddCoinAddressDto) { + return memberService.memberAddCoinAddressIn(memberAddCoinAddressDto); + } + + /** + * 提币申请--内转 + * @return + */ + @ApiOperation(value="提交提币申请--内转", notes="提交提币申请--内转") + @PostMapping(value="/memberSubmitCoinApplyIn") + public Result memberSubmitCoinApplyIn(@RequestBody @Valid MemberSubmitCoinApplyInDto memberSubmitCoinApplyInDto) { + return memberService.memberSubmitCoinApplyIn(memberSubmitCoinApplyInDto); + } + + /** + * 删除内转提币地址 + * @return + */ + @ApiOperation(value="删除内转提币地址", notes="删除内转提币地址") + @PostMapping(value="/memberDelCoinAddressIn") + public Result memberDelCoinAddressIn(@RequestBody @Valid MemberDelCoinAddressDto memberDelCoinAddressDto) { + return memberService.memberDelCoinAddressIn(memberDelCoinAddressDto); + } + + } -- Gitblit v1.9.1