serv-权限+文件下载

This commit is contained in:
2025-10-18 17:57:14 +08:00
parent e0f4815d48
commit b3424e554f
30 changed files with 235 additions and 105 deletions

View File

@@ -10,6 +10,7 @@ import org.xyzh.common.core.domain.ResultDomain;
import org.xyzh.common.dto.system.TbSysFile;
import org.xyzh.common.dto.user.TbSysUser;
import org.xyzh.common.dto.user.TbSysUserInfo;
import org.xyzh.common.vo.UserVO;
import org.xyzh.api.system.user.UserService;
import org.xyzh.common.annotation.HttpLogin;
import org.xyzh.common.core.domain.LoginDomain;
@@ -39,13 +40,13 @@ public class UserProfileController {
* 获取个人信息
*/
@GetMapping("/info")
public ResultDomain<TbSysUserInfo> getUserProfile(@HttpLogin LoginDomain loginDomain) {
public ResultDomain<UserVO> getUserProfile(@HttpLogin LoginDomain loginDomain) {
// TODO: 实现获取个人信息
ResultDomain<TbSysUserInfo> result = userService.getUserInfoById(loginDomain.getUser().getID());
ResultDomain<UserVO> result = userService.getUserInfoTotal(loginDomain.getUser().getID());
if (result.isSuccess()) {
return result;
} else {
ResultDomain<TbSysUserInfo> result2 = new ResultDomain<>();
ResultDomain<UserVO> result2 = new ResultDomain<>();
result2.fail(result.getCode(), result.getMessage());
return result2;
}