This commit is contained in:
2025-07-25 17:30:34 +09:00
parent a3f591ab3a
commit 3864eaa965
30 changed files with 241 additions and 63 deletions

View File

@@ -42,7 +42,7 @@ let AuthController = class AuthController {
return await this.authService.login(dto);
}
async getMe(req) {
return await this.userService.findUserInfoByIdOrFail(req.user.userId);
return await this.userService.findUserWithProfileByIdOrFail(req.user.userId);
}
};
exports.AuthController = AuthController;
@@ -70,8 +70,8 @@ __decorate([
(0, common_1.Get)('me'),
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
(0, swagger_1.ApiBearerAuth)(),
(0, swagger_1.ApiOkResponse)({ description: '성공', type: user_info_response_dto_1.UserInfoResponseDto }),
openapi.ApiResponse({ status: 200, type: require("../users/dto/user-info-response.dto").UserInfoResponseDto }),
(0, swagger_1.ApiOkResponse)({ description: '성공', type: user_info_response_dto_1.UserWithProfileResponseDto }),
openapi.ApiResponse({ status: 200, type: require("../users/dto/user-info-response.dto").UserWithProfileResponseDto }),
__param(0, (0, common_1.Request)()),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),