Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxing.ai committed Sep 11, 2023
1 parent 29fe7f3 commit 4461ec1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,12 @@ public R<ClientUserInfoVo> getClientUserInfo() {
return R.ok(clientUserInfoVo);
}

@PostMapping("/register")
public R<Boolean> register(@RequestBody ClientUser clientUser) {
if (clientUser == null || StringUtils.isAllBlank(clientUser.getUserName(), clientUser.getPassword())) {
return R.fail("Username or password must not blank!");
}
return R.ok(true);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,13 @@ public AjaxResult withdrawAcct(@RequestBody FundAccountInfo fundAccountInfo) {
return success(list);
}

@PostMapping("/bindWithdrawAcct")
public AjaxResult bindWithdrawAcct(@RequestBody FundAccountInfo fundAccountInfo) {
fundAccountInfo.setAccountType("withdraw");
fundAccountInfo.setUserId(SecurityContextHolder.getUserId());
fundAccountInfo.setUserName(SecurityContextHolder.getUserName());
fundAccountInfoService.insertFundAccountInfo(fundAccountInfo);
return success();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ public interface IClientUserService
public int deleteClientUserByUserId(Long userId);

public ClientUser selectUserByUserName(String username);


}

0 comments on commit 4461ec1

Please sign in to comment.