|
|
@ -57,4 +57,16 @@ public class AdminController { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/adminId") |
|
|
|
public Result selectId(@RequestBody Admin admin) { |
|
|
|
|
|
|
|
try { |
|
|
|
String ID = adminService.getId(admin.getAccount()); |
|
|
|
return Result.success(ID); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error(e.getMessage()); |
|
|
|
return Result.error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |