@@ -235,33 +235,37 @@ export const handleLogin = async (req, res, next) => {
235235
236236// 유저 정보 불러오기
237237export const handleUserInfo = async ( req , res ) => {
238- /*
238+ /**
239239 #swagger.summary = '유저 정보 불러오기 API'
240240 #swagger.tags = ['User']
241- #swagger.security = [{
242- "BearerAuth": []
243- }]
241+ #swagger.security = [{ "BearerAuth": [] }]
242+
244243 #swagger.responses[200] = {
245- description: "유저 정보 성공 응답 ",
244+ description: "유저 정보 조회 성공 ",
246245 content: {
247246 "application/json": {
248247 schema: {
249248 type: "object",
250249 properties: {
251- isSuccess: { type: "boolean", example: true },
252- code: { type: "number", example: 200 },
253- message: { type: "string", example: "유저 정보 조회 성공" },
250+ isSuccess: { type: "boolean", example: true },
251+ code: { type: "number", example: 200 },
252+ message: { type: "string", example: "유저 정보 조회 성공" },
254253 result: {
255254 type: "object",
256255 properties: {
257- id: { type: "string", example: "1" },
258- email: { type: "string", example: "user@example .com" },
259- nickname: { type: "string", example: "nickname" },
260- name: { type: "string", example: "John Doe" },
261- status: { type: "string", example: "active" },
256+ id: { type: "string", example: "1" },
257+ email: { type: "string", example: "user@example .com" },
258+ nickname: { type: "string", example: "nickname" },
259+ name: { type: "string", example: "John Doe" },
262260 profileImageUrl: { type: "string", nullable: true, example: null },
263- createdAt: { type: "string", format: "date", example: "2021-05-12" },
264- updatedAt: { type: "string", format: "date", example: "2021-06-15" }
261+ gender: { type: "string", example: "M" },
262+ birth: { type: "string", format: "date-time", example: "1992-07-15T00:00:00.000Z" },
263+ phoneNumber: { type: "string", example: "010-1234-5678" },
264+ point: { type: "number", example: 3300 },
265+ tier: { type: "string", example: "Gold" },
266+ rank: { type: "number", example: 123 },
267+ createdAt: { type: "string", format: "date-time", example: "2025-05-25T19:42:11.304Z" },
268+ updatedAt: { type: "string", format: "date-time", example: "2025-06-14T20:03:16.935Z" }
265269 }
266270 }
267271 }
@@ -316,8 +320,8 @@ export const handleUserInfo = async (req, res) => {
316320 res . send ( response ( status . TOKEN_FORMAT_INCORRECT , null ) ) ;
317321 }
318322 } catch ( err ) {
319- console . log ( err ) ;
320- res . send ( response ( BaseError ) ) ;
323+ console . error ( "🔴 handleUserInfo 오류:" , err ) ;
324+ return res . send ( response ( status . INTERNAL_SERVER_ERROR , null ) ) ;
321325 }
322326} ;
323327
0 commit comments