@@ -29,7 +29,7 @@ public class StoryController {
2929 @ GetMapping ("/{storyId}/scenes/{pageNum}" )
3030 public ApiResponse <SceneResponseDTO > getSceneBySceneNum (
3131 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
32- @ Parameter (description = "장면 번호" ) @ PathVariable int pageNum
32+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum
3333 ) {
3434 SceneResponseDTO scene = storyService .getSceneBySceneNum (storyId , pageNum );
3535 return ApiResponse .onSuccess (scene );
@@ -53,13 +53,13 @@ public ApiResponse<String> updateStoryTitle(
5353 }
5454
5555 @ Operation (summary = "줄거리 수정 API" , description = "특정 장면의 줄거리를 사용자가 수정한 내용으로 업데이트한다." )
56- @ PatchMapping ("/{storyId}/scenes/{sceneNum }" )
56+ @ PatchMapping ("/{storyId}/scenes/{pageNum }" )
5757 public ApiResponse <String > updateSceneContent (
5858 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
59- @ Parameter (description = "장면 번호" ) @ PathVariable int sceneNum ,
59+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum ,
6060 @ RequestBody StoryRequestDTO .StoryUpdateRequestDTO request
6161 ) {
62- String updatedContent = storyService .updateSceneContent (storyId , sceneNum , request .getUpdatedContent ());
62+ String updatedContent = storyService .updateSceneContent (storyId , pageNum , request .getUpdatedContent ());
6363 return ApiResponse .onSuccess (updatedContent );
6464 }
6565
@@ -101,55 +101,55 @@ public ApiResponse<String> createInitStory(
101101 }
102102
103103 @ Operation (summary = "다음 줄거리 생성 API" , description = "이전 줄거리를 기반으로 다음 줄거리를 생성한다." )
104- @ PostMapping ("/{storyId}/scenes/{sceneNum }" )
104+ @ PostMapping ("/{storyId}/scenes/{pageNum }" )
105105 public ApiResponse <String > createNextStory (
106106 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
107- @ Parameter (description = "장면 번호" ) @ PathVariable int sceneNum ) {
108- String nextStory = storyService .generateNextScene (storyId , sceneNum );
107+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum ) {
108+ String nextStory = storyService .generateNextScene (storyId , pageNum );
109109 return ApiResponse .onSuccess (nextStory );
110110 }
111111
112112 @ Operation (summary = "질문 생성 API" , description = "이전 줄거리를 기반으로 아이에게 던질 질문을 생성한다." )
113- @ PostMapping ("/{storyId}/scenes/{sceneNum }/question" )
113+ @ PostMapping ("/{storyId}/scenes/{pageNum }/question" )
114114 public ApiResponse <String > createQuestionFromPrevScene (
115115 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
116- @ Parameter (description = "장면 번호" ) @ PathVariable int sceneNum ) {
117- String question = storyService .generateQuestionFromPreviousScene (storyId , sceneNum );
116+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum ) {
117+ String question = storyService .generateQuestionFromPreviousScene (storyId , pageNum );
118118 return ApiResponse .onSuccess (question );
119119 }
120120
121121 @ Operation (summary = "답변 기반 다음 줄거리 생성 API" , description = "아이의 답변을 기반으로 다음 줄거리를 생성한다." )
122- @ PostMapping ("/{storyId}/scenes/{sceneNum }/next-from-answer" )
122+ @ PostMapping ("/{storyId}/scenes/{pageNum }/next-from-answer" )
123123 public ApiResponse <String > createNextSceneFromAnswer (
124124 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
125- @ Parameter (description = "장면 번호" ) @ PathVariable int sceneNum ,
125+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum ,
126126 @ RequestBody StoryRequestDTO .StoryAnswerRequestDTO request
127127 ) {
128- String nextStory = storyService .generateNextSceneWithAnswer (storyId , sceneNum , request .getAnswer ());
128+ String nextStory = storyService .generateNextSceneWithAnswer (storyId , pageNum , request .getAnswer ());
129129 return ApiResponse .onSuccess (nextStory );
130130 }
131131 @ Operation (summary = "스케치 기반 이미지 생성 API" , description = "아이의 스케치 이미지와 줄거리를 기반으로 이미지를 생성합니다." )
132132 @ PostMapping (
133- value = "/{storyId}/scenes/{sceneNum }/controlnet" ,
133+ value = "/{storyId}/scenes/{pageNum }/controlnet" ,
134134 consumes = MediaType .MULTIPART_FORM_DATA_VALUE
135135 )
136136 public ApiResponse <String > createImageFromSketch (
137137 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
138- @ Parameter (description = "장면 번호" ) @ PathVariable int sceneNum ,
138+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum ,
139139 @ Parameter (description = "스케치 이미지 파일" , content = @ Content (mediaType = MediaType .APPLICATION_OCTET_STREAM_VALUE ))
140140 @ RequestPart ("sketch" ) MultipartFile sketch
141141 ) {
142- String image = storyService .generateImageFromSketch (storyId , sceneNum , sketch );
142+ String image = storyService .generateImageFromSketch (storyId , pageNum , sketch );
143143 return ApiResponse .onSuccess (image );
144144 }
145145
146146 @ Operation (summary = "줄거리 기반 이미지 생성 API" , description = "줄거리 텍스트만을 기반으로 이미지를 생성합니다." )
147- @ PostMapping ( "/{storyId}/scenes/{sceneNum }/dalle" )
147+ @ PostMapping ( "/{storyId}/scenes/{pageNum }/dalle" )
148148 public ApiResponse <String > createImageFromPrompt (
149149 @ Parameter (description = "스토리 ID" ) @ PathVariable Long storyId ,
150- @ Parameter (description = "장면 번호" ) @ PathVariable int sceneNum
150+ @ Parameter (description = "페이지 번호(1~8) " ) @ PathVariable int pageNum
151151 ) {
152- String image = storyService .generateImageFromPrompt (storyId , sceneNum );
152+ String image = storyService .generateImageFromPrompt (storyId , pageNum );
153153 return ApiResponse .onSuccess (image );
154154 }
155155
0 commit comments