feat: 添加了获取单个用户信息的接口
This commit is contained in:
parent
6d8dffd46f
commit
cf4f6d8a7b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user