|
@@ -223,6 +223,18 @@ public class UserController extends BaseController {
|
|
|
userService.removeBankCard(SecurityUtils.getAuthenticatedUser().getId());
|
|
userService.removeBankCard(SecurityUtils.getAuthenticatedUser().getId());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/removeBankCardAdmin")
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN')")
|
|
|
|
|
+ public void removeBankCardAdmin(@RequestParam Long userId) throws BaseAdaPayException {
|
|
|
|
|
+ userService.removeBankCard(userId);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/removeAuthAdmin")
|
|
|
|
|
+ @PreAuthorize("hasAnyRole('ADMIN')")
|
|
|
|
|
+ public void removeAuthAdmin(@RequestParam Long userId) {
|
|
|
|
|
+ userService.removeAuth(userId);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@PreAuthorize("hasAnyRole('ADMIN')")
|
|
@PreAuthorize("hasAnyRole('ADMIN')")
|
|
|
@PostMapping("/batchRegister")
|
|
@PostMapping("/batchRegister")
|
|
|
public Map<String, Object> batchRegister(@RequestParam String phones, @RequestParam String defaultPassword) {
|
|
public Map<String, Object> batchRegister(@RequestParam String phones, @RequestParam String defaultPassword) {
|