@@ -12,7 +12,7 @@ import {
1212 Security ,
1313 Query ,
1414 Path ,
15- Get
15+ Get ,
1616} from 'tsoa' ;
1717import { Request as ExpressRequest } from 'express' ;
1818import { TsoaSuccessResponse , TsoaFailResponse } from '../config/response_interface' ;
@@ -26,22 +26,10 @@ export interface CreateScheduleSuccess {
2626 user_alba_schedule_id : string ;
2727}
2828
29- // export interface UpdateScheduleSuccess {
30- // resultType: 'SUCCESS';
31- // SuccessMessage: '유저 알바 스케줄 수정 성공';
32- // user_alba_schedule_id: string;
33- // }
34-
35- // export interface DeleteScheduleSuccess {
36-
37- // user_alba_schedule_id: string;
38- // }
39-
4029@Route ( 'user/alba/schedule' )
4130@Tags ( 'User Alba Schedule' )
4231export class UserAlbaScheduleController extends Controller {
43-
44- /**
32+ /**
4533 * 내 유저 알바 스케줄 목록 조회 (커서/사이즈 없음)
4634 * 예) /user/alba/schedule?month=2026-02
4735 */
@@ -69,50 +57,15 @@ export class UserAlbaScheduleController extends Controller {
6957 ) : Promise < TsoaSuccessResponse < any > > {
7058 const userUuid = ( req as any ) . user ?. id as string ;
7159
72- console . log ( " token userId =" , userUuid ) ;
73- console . log ( " month =" , month ) ;
60+ console . log ( ' token userId =' , userUuid ) ;
61+ console . log ( ' month =' , month ) ;
7462
7563 const data = await userAlbaScheduleService . listMySchedules ( userUuid , { month } ) ;
7664
7765 this . setStatus ( 200 ) ;
7866 return new TsoaSuccessResponse ( data ) ;
7967 }
8068
81- /**
82- * 내 유저 알바 스케줄 단건 조회(상세)
83- */
84- // @Security ('jwt')
85- // @Get ('{userAlbaScheduleId}')
86- // @SuccessResponse (200, '유저 알바 스케줄 단건 조회 성공')
87- // @Response <TsoaFailResponse<any>>(401, 'Unauthorized', {
88- // resultType: 'FAIL' as any,
89- // error: { errorCode: 'EC401', errorMessage: '인증이 필요합니다.', data: null },
90- // success: null,
91- // })
92- // @Response <TsoaFailResponse<any>>(404, 'Not Found', {
93- // resultType: 'FAIL' as any,
94- // error: { errorCode: 'EC404', errorMessage: '스케줄을 찾을 수 없습니다.', data: null },
95- // success: null,
96- // })
97- // @Response <TsoaFailResponse<any>>(500, 'Internal Server Error', {
98- // resultType: 'FAIL' as any,
99- // error: { errorCode: 'EC500', errorMessage: '서버 오류가 발생했습니다.', data: null },
100- // success: null,
101- // })
102- // public async getMySchedule(
103- // @Request () req: ExpressRequest,
104- // @Path () userAlbaScheduleId: string,
105- // ): Promise<TsoaSuccessResponse<any>> {
106- // const userUuid = (req as any).user?.id as string;
107-
108- // //const schedule = await userAlbaScheduleService.getMyScheduleById(userUuid, userAlbaScheduleId);
109-
110- // this.setStatus(200);
111- // // return new TsoaSuccessResponse(schedule);
112- // }
113-
114-
115-
11669 /*
11770 * 유저 알바 스케줄 등록 API
11871 * @param request - Express 요청 객체
@@ -156,9 +109,9 @@ export class UserAlbaScheduleController extends Controller {
156109 void body ;
157110
158111 this . setStatus ( 201 ) ;
159- return new TsoaSuccessResponse ( {
160- user_alba_schedule_id : id ,
161- } ) ;
112+ return new TsoaSuccessResponse ( {
113+ user_alba_schedule_id : id ,
114+ } ) ;
162115 }
163116
164117 ////// // 유저 알바 정보 기반 //////
0 commit comments