user返回个人信息和loginlogs更新

This commit is contained in:
2023-12-26 21:42:35 +08:00
parent 5fdda5bdb6
commit 941ae2d42a
7 changed files with 22 additions and 13 deletions

View File

@@ -17,7 +17,6 @@ public class LoginLogsController {
LoginLogsService loginLogsService;
@RequestMapping("/getUserLoginLogs")
public List<LoginLogs> getUserLoginLog(LoginLogs loginLogs){
if (loginLogs==null){
return null;
}

View File

@@ -26,6 +26,7 @@ import javax.websocket.Session;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
@@ -192,7 +193,7 @@ public class UserController {
}
@RequestMapping("/getAllUsers")
public HashMap<Integer,Object> getAllUsers(){
public List<User> getAllUsers(){
return userService.getAllUsers();
}
@@ -227,4 +228,11 @@ public class UserController {
// }
// return userService.updateUserMessage(user);
// }
@RequestMapping("/getUserDetailes")
public User getUserDetailes(User user){
if (user==null||user.getId()==null){
return null;
}
return userService.selectByUserId(user);
}
}