feat: 添加了获取单个用户信息的接口

This commit is contained in:
wzp 2024-05-09 17:58:57 +08:00
parent 6d8dffd46f
commit cf4f6d8a7b

View File

@ -90,5 +90,10 @@ public class UserController {
public void getAvatar(HttpServletResponse response, @Schema(description = "头像文件SHA1值") @PathVariable("sha1") String sha1){
service.getAvatar(response, sha1);
}
@GetMapping("/info/{id}")
@Operation(description = "获取简略用户信息")
public BaseResponse<User> getSimpleInfo(@PathVariable("id") int userId){
return service.getUserInfo(userId);
}
}