添加了一点点注释,/getAll那里还有问题

This commit is contained in:
MiLla 2024-07-05 23:41:19 +08:00
parent 83d6713e93
commit fd65ed2c60
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ public class UserHS2User {
user.setPhone(userHS.getPhoneNumber()); user.setPhone(userHS.getPhoneNumber());
return user; return user;
} }
//不确定这个能不能用XD
public static List<User> convertList(List<UserHS> userHSList) { public static List<User> convertList(List<UserHS> userHSList) {
return userHSList.stream() return userHSList.stream()
.map(UserHS2User::convert) .map(UserHS2User::convert)

View File

@ -50,6 +50,7 @@ public class UserManagementController {
@GetMapping("/getAll") @GetMapping("/getAll")
public List<User> getAll() { public List<User> getAll() {
//这里getAll??
List<UserHS> userHSList = userService.getAll(); List<UserHS> userHSList = userService.getAll();
return UserHS2User.convertList(userHSList);; return UserHS2User.convertList(userHSList);;
} }