|  |  |  | 
|---|
|  |  |  | import javax.annotation.Resource; | 
|---|
|  |  |  | import javax.validation.Valid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.GetMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.AppVersionListVo; | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @date 2020-05-18 | 
|---|
|  |  |  | **/ | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | @CrossOrigin("*") | 
|---|
|  |  |  | @Api(value = "个人中心接口", tags = "个人中心接口") | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping(value = "/api/member") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 设置交易密码 | 
|---|
|  |  |  | * @param code | 
|---|
|  |  |  | * @param password | 
|---|
|  |  |  | * @param token | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value="设置交易密码", notes="设置交易密码") | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping(value = "/memberPaymethodDetailList") | 
|---|
|  |  |  | 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(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | *    提币币种可用资金 | 
|---|
|  |  |  | * @param token | 
|---|
|  |  |  | * @param coinVo | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "提币币种可用资金", notes = "提币币种可用资金") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | *    提币申请 | 
|---|
|  |  |  | * @param token | 
|---|
|  |  |  | * @param coinVo | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value="提交提币申请", notes="提交提币申请") | 
|---|
|  |  |  | @PostMapping(value="/memberSubmitCoinApply") | 
|---|
|  |  |  | public Result memberSubmitCoinApply(@RequestBody @Valid MemberSubmitCoinApplyDto memberSubmitCoinApplyDto) { | 
|---|
|  |  |  | //       return Result.fail("暂未开放提币"); | 
|---|
|  |  |  | return memberService.memberSubmitCoinApply(memberSubmitCoinApplyDto); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 我的直属团队 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "我的直属团队", notes = "我的直属团队") | 
|---|
|  |  |  | @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberTeamVo.class)}) | 
|---|
|  |  |  | @PostMapping(value="/memberTeam") | 
|---|
|  |  |  | public Result  memberTeam(@RequestBody @Valid MemberTeamRecordsPageDto memberTeamRecordsPageDto) { | 
|---|
|  |  |  | return memberService.memberTeam(memberTeamRecordsPageDto); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取内转提币地址 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "获取内转提币地址列表", notes = "获取内转提币地址列表") | 
|---|
|  |  |  | @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberCoinAddressInListVo.class)}) | 
|---|
|  |  |  | @GetMapping(value = "/memberCoinAddressInList") | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|