11package grep .neogul_coder .domain .calender .controller ;
22
3- import grep .neogul_coder .domain .calender .controller .dto .requset .TeamCalenderRequest ;
4- import grep .neogul_coder .domain .calender .controller .dto .response .TeamCalenderResponse ;
3+ import grep .neogul_coder .domain .calender .controller .dto .requset .TeamCalendarRequest ;
4+ import grep .neogul_coder .domain .calender .controller .dto .response .TeamCalendarResponse ;
55import grep .neogul_coder .global .response .ApiResponse ;
66import io .swagger .v3 .oas .annotations .Operation ;
77import io .swagger .v3 .oas .annotations .Parameter ;
1414import org .springframework .web .bind .annotation .RequestParam ;
1515
1616@ Tag (name = "팀 캘린더" , description = "팀 캘린더 API (Swagger 인터페이스)" )
17- public interface TeamCalenderSpecification {
17+ public interface TeamCalendarSpecification {
1818
1919 @ Operation (
2020 summary = "팀 일정 전체 조회" ,
2121 description = "특정 팀 ID에 해당하는 모든 일정을 조회합니다.\n \n " +
22- "예: `/api/teams/{teamId }/calendar`"
22+ "예: `/api/teams/{studyId }/calendar`"
2323 )
24- ApiResponse <List <TeamCalenderResponse >> findAll (
25- @ Parameter (name = "teamId " , description = "조회할 팀 ID" , required = true , in = ParameterIn .PATH )
26- @ PathVariable ("teamId " ) Long teamId
24+ ApiResponse <List <TeamCalendarResponse >> findAll (
25+ @ Parameter (name = "studyId " , description = "조회할 팀 ID" , required = true , in = ParameterIn .PATH )
26+ @ PathVariable ("studyId " ) Long studyId
2727 );
2828
2929
3030 @ Operation (
3131 summary = "팀 일정 상세 조회" ,
3232 description = "특정 팀의 특정 일정 상세정보를 조회합니다.\n \n " +
33- "예: `/api/teams/{teamId }/calendar/{scheduleId }`"
33+ "예: `/api/teams/{studyId }/calendar/{calendarId }`"
3434 )
35- ApiResponse <TeamCalenderResponse > findOne (
36- @ Parameter (name = "teamId " , description = "팀 ID" , required = true , in = ParameterIn .PATH )
37- @ PathVariable ("teamId " ) Long teamId ,
38- @ Parameter (name = "scheduleId " , description = "일정 ID" , required = true , in = ParameterIn .PATH )
39- @ PathVariable ("scheduleId " ) Long scheduleId
35+ ApiResponse <TeamCalendarResponse > findOne (
36+ @ Parameter (name = "studyId " , description = "팀 ID" , required = true , in = ParameterIn .PATH )
37+ @ PathVariable ("studyId " ) Long studyId ,
38+ @ Parameter (name = "calendarId " , description = "일정 ID" , required = true , in = ParameterIn .PATH )
39+ @ PathVariable ("calendarId " ) Long calendarId
4040 );
4141
4242
4343 @ Operation (
4444 summary = "팀 일정 날짜별 조회" ,
4545 description = "특정 팀의 특정 날짜(yyyy-MM-dd)에 등록된 일정들을 조회합니다.\n \n " +
46- "예: `/api/teams/{teamId }/calendar/day?date=2025-07-17`"
46+ "예: `/api/teams/{studyId }/calendar/day?date=2025-07-17`"
4747 )
48- ApiResponse <List <TeamCalenderResponse >> findByDate (
49- @ Parameter (name = "teamId " , description = "조회할 팀 ID" , required = true , in = ParameterIn .PATH )
50- @ PathVariable ("teamId " ) Long teamId ,
48+ ApiResponse <List <TeamCalendarResponse >> findByDate (
49+ @ Parameter (name = "studyId " , description = "조회할 팀 ID" , required = true , in = ParameterIn .PATH )
50+ @ PathVariable ("studyId " ) Long studyId ,
5151
5252 @ Parameter (name = "date" , description = "조회할 날짜 (yyyy-MM-dd)" , required = true , in = ParameterIn .QUERY )
5353 @ RequestParam String date
@@ -57,36 +57,36 @@ ApiResponse<List<TeamCalenderResponse>> findByDate(
5757 @ Operation (
5858 summary = "팀 일정 생성" ,
5959 description = "특정 팀 ID에 새로운 일정을 생성합니다.\n \n " +
60- "예: `/api/teams/{teamId }/calendar`"
60+ "예: `/api/teams/{studyId }/calendar`"
6161 )
6262 ApiResponse <Void > create (
63- @ Parameter (name = "teamId " , description = "일정을 생성할 팀 ID" , required = true , in = ParameterIn .PATH )
64- @ PathVariable ("teamId " ) Long teamId ,
65- @ RequestBody TeamCalenderRequest request
63+ @ Parameter (name = "studyId " , description = "일정을 생성할 팀 ID" , required = true , in = ParameterIn .PATH )
64+ @ PathVariable ("studyId " ) Long studyId ,
65+ @ RequestBody TeamCalendarRequest request
6666 );
6767
6868 @ Operation (
6969 summary = "팀 일정 수정" ,
7070 description = "기존 팀 일정을 수정합니다.\n \n " +
71- "예: `/api/teams/{teamId }/calendar/{scheduleId }`"
71+ "예: `/api/teams/{studyId }/calendar/{calendarId }`"
7272 )
7373 ApiResponse <Void > update (
74- @ Parameter (name = "teamId " , description = "팀 ID" , required = true , in = ParameterIn .PATH )
75- @ PathVariable ("teamId " ) Long teamId ,
76- @ Parameter (name = "scheduleId " , description = "일정 ID" , required = true , in = ParameterIn .PATH )
77- @ PathVariable ("scheduleId " ) Long scheduleId ,
78- @ RequestBody TeamCalenderRequest request
74+ @ Parameter (name = "studyId " , description = "팀 ID" , required = true , in = ParameterIn .PATH )
75+ @ PathVariable ("studyId " ) Long studyId ,
76+ @ Parameter (name = "calendarId " , description = "일정 ID" , required = true , in = ParameterIn .PATH )
77+ @ PathVariable ("calendarId " ) Long calendarId ,
78+ @ RequestBody TeamCalendarRequest request
7979 );
8080
8181 @ Operation (
8282 summary = "팀 일정 삭제" ,
8383 description = "기존 팀 일정을 삭제합니다.\n \n " +
84- "예: `/api/teams/{teamId }/calendar/{scheduleId }`"
84+ "예: `/api/teams/{studyId }/calendar/{calendarId }`"
8585 )
8686 ApiResponse <Void > delete (
87- @ Parameter (name = "teamId " , description = "팀 ID" , required = true , in = ParameterIn .PATH )
88- @ PathVariable ("teamId " ) Long teamId ,
89- @ Parameter (name = "scheduleId " , description = "일정 ID" , required = true , in = ParameterIn .PATH )
90- @ PathVariable ("scheduleId " ) Long scheduleId
87+ @ Parameter (name = "studyId " , description = "팀 ID" , required = true , in = ParameterIn .PATH )
88+ @ PathVariable ("studyId " ) Long studyId ,
89+ @ Parameter (name = "calendarId " , description = "일정 ID" , required = true , in = ParameterIn .PATH )
90+ @ PathVariable ("calendarId " ) Long calendarId
9191 );
9292}
0 commit comments