forked from RyanGoodwill/backend
添加了一点点注释,/getAll那里还有问题
This commit is contained in:
parent
83d6713e93
commit
fd65ed2c60
@ -18,6 +18,7 @@ public class UserHS2User {
|
||||
user.setPhone(userHS.getPhoneNumber());
|
||||
return user;
|
||||
}
|
||||
//不确定这个能不能用XD
|
||||
public static List<User> convertList(List<UserHS> userHSList) {
|
||||
return userHSList.stream()
|
||||
.map(UserHS2User::convert)
|
||||
|
||||
@ -50,6 +50,7 @@ public class UserManagementController {
|
||||
|
||||
@GetMapping("/getAll")
|
||||
public List<User> getAll() {
|
||||
//这里getAll??
|
||||
List<UserHS> userHSList = userService.getAll();
|
||||
return UserHS2User.convertList(userHSList);;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user