添加用户头像的url
All checks were successful
构建并部署 Spring Boot 应用 / build-and-deploy (push) Successful in 17m16s
All checks were successful
构建并部署 Spring Boot 应用 / build-and-deploy (push) Successful in 17m16s
This commit is contained in:
@@ -32,4 +32,9 @@ public class UserInfoResponse {
|
||||
* 微信用户唯一标识
|
||||
*/
|
||||
private String openid;
|
||||
|
||||
/**
|
||||
* 用户头像路径
|
||||
*/
|
||||
private String avatarPath;
|
||||
}
|
||||
@@ -8,6 +8,6 @@ public class UserResponse {
|
||||
private String name;
|
||||
private String nickName;
|
||||
private String role;
|
||||
private String avatarUrl;
|
||||
private String avatarPath;
|
||||
private String phone;
|
||||
}
|
||||
@@ -286,6 +286,7 @@ public class UserServiceImpl implements UserService {
|
||||
dto.setName(employee.get().getName());
|
||||
dto.setPhone(employee.get().getPhone());
|
||||
dto.setRole(employee.get().getRole());
|
||||
dto.setAvatarPath(employee.get().getAvatarPath()); // 设置头像路径
|
||||
} else {
|
||||
dto.setRole(UserRole.GUEST.getCode());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user