From 729027dccfb797b26816fe8d57c77fe18620594f Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sat, 08 Oct 2022 16:53:27 +0800
Subject: [PATCH] 20220902
---
src/main/java/cc/mrbird/febs/mall/controller/ApiMallMemberController.java | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallMemberController.java b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallMemberController.java
index ede4051..eadf8c6 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/ApiMallMemberController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/ApiMallMemberController.java
@@ -26,6 +26,7 @@
**/
@Slf4j
@RestController
+@CrossOrigin("*")
@RequestMapping(value = "/api/member")
@RequiredArgsConstructor
@Api(value = "ApiMallMemberController", tags = "商城用户接口类")
@@ -170,4 +171,47 @@
public FebsResponse myCommission() {
return new FebsResponse().success().data(memberService.myCommission());
}
+
+ @ApiOperation(value = "商铺申请是否存在")
+ @PostMapping(value = "/shopApplyIsExist")
+ public FebsResponse shopApplyIsExist() {
+ return null;
+ }
+
+ @ApiOperation(value = "新增银行卡")
+ @PostMapping(value = "/addMemberBank")
+ public FebsResponse addMemberBank(@RequestBody AddMemberBankDto addMemberBankDto) {
+ return memberService.addMemberBank(addMemberBankDto);
+ }
+
+ @ApiOperation(value = "银行卡列表", notes = "银行卡列表")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = MemberBankListVo.class)
+ })
+ @PostMapping(value = "/memberBankList")
+ public FebsResponse memberBankList(@RequestBody MemberBankListDto memberBankListDto) {
+ return memberService.findMemberBankList(memberBankListDto);
+ }
+
+ @ApiOperation(value = "银行卡详情", notes = "银行卡详情")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = MemberBankListVo.class)
+ })
+ @GetMapping(value = "/memberBankDetails/{id}")
+ public FebsResponse memberBankDetails(@PathVariable("id") Long id) {
+ return memberService.findBankDetailsById(id);
+ }
+
+ @ApiOperation(value = "更新银行卡")
+ @PostMapping(value = "/updateMemberBank")
+ public FebsResponse updateMemberBank(@RequestBody UpdateMemberBankDto updateMemberBankDto) {
+ return memberService.updateMemberBank(updateMemberBankDto);
+ }
+
+ @ApiOperation(value = "删除银行卡", notes = "删除银行卡")
+ @PostMapping(value = "/delMemberBank/{id}")
+ public FebsResponse delMemberBank(@PathVariable("id") Long id) {
+ return memberService.delMemberBank(id);
+ }
+
}
--
Gitblit v1.9.1