@@ -94,23 +94,64 @@ public ResponseEntity<BaseResponse> removeTheme(@RequestBody @Valid ThemeDto.Rem
9494 return ResponseEntity .ok (new BaseResponse (OK ));
9595 }
9696
97+ @ Operation (
98+ summary = "테마 타이머 배경 이미지 PreSigned Url 요청" ,
99+ description = """
100+ s3 url /{profile}/{shopId}/{themeId}/{type}/{num}_uuid.png
101+
102+ ex) "/dev/1/3/timer/1_2e20b6a9-e24b-45a8-a974-005c14f9f44f.png"
103+ """ ,
104+ responses = {
105+ @ ApiResponse (responseCode = "200" , description = "OK" ),
106+ @ ApiResponse (responseCode = "401" , description = "TOKEN_UNAUTHORIZED" ),
107+ @ ApiResponse (responseCode = "403" , description = "NOT_PERMITTED" ),
108+ @ ApiResponse (responseCode = "404" , description = "TARGET_THEME_NOT_FOUND" )
109+ }
110+ )
97111 @ GetMapping ("/timer/url/{themeId}" )
98112 public ResponseEntity <DataResponse <ThemeUrlResponse >> getUrl (@ PathVariable Long themeId ) {
99113 return ResponseEntity .ok (new DataResponse <>(OK , themeService .getTimerUrl (themeId )));
100114 }
101115
116+ @ Operation (
117+ summary = "테마 타이머 배경 이미지 추가" ,
118+ responses = {
119+ @ ApiResponse (responseCode = "200" , description = "OK" ),
120+ @ ApiResponse (responseCode = "401" , description = "TOKEN_UNAUTHORIZED" ),
121+ @ ApiResponse (responseCode = "403" , description = "NOT_PERMITTED" ),
122+ @ ApiResponse (responseCode = "404" , description = "TARGET_THEME_NOT_FOUND" )
123+ }
124+ )
102125 @ PostMapping ("/timer" )
103126 public ResponseEntity <BaseResponse > addThemeTimerImage (@ RequestBody @ Valid ThemeDto .ThemeUrlRequest request ) {
104127 themeService .addThemeTimerImage (request );
105128 return ResponseEntity .ok (new BaseResponse (OK ));
106129 }
107130
131+ @ Operation (
132+ summary = "테마 타이머 배경 이미지 삭제" ,
133+ responses = {
134+ @ ApiResponse (responseCode = "200" , description = "OK" ),
135+ @ ApiResponse (responseCode = "401" , description = "TOKEN_UNAUTHORIZED" ),
136+ @ ApiResponse (responseCode = "403" , description = "NOT_PERMITTED" ),
137+ @ ApiResponse (responseCode = "404" , description = "TARGET_THEME_NOT_FOUND" )
138+ }
139+ )
108140 @ DeleteMapping ("/timer/{themeId}" )
109141 public ResponseEntity <BaseResponse > removeTheme (@ PathVariable Long themeId ) {
110142 themeService .removeThemeTimerImage (themeId );
111143 return ResponseEntity .ok (new BaseResponse (OK ));
112144 }
113145
146+ @ Operation (
147+ summary = "(앱) 테마 타이머 배경 on/off 설정" ,
148+ responses = {
149+ @ ApiResponse (responseCode = "200" , description = "OK" ),
150+ @ ApiResponse (responseCode = "401" , description = "TOKEN_UNAUTHORIZED" ),
151+ @ ApiResponse (responseCode = "403" , description = "NOT_PERMITTED" ),
152+ @ ApiResponse (responseCode = "404" , description = "TARGET_THEME_NOT_FOUND" )
153+ }
154+ )
114155 @ PutMapping ("/timer/active" )
115156 public ResponseEntity <BaseResponse > activeTimerUrl (@ RequestBody @ Valid ThemeDto .ThemeActiveUrlRequest request ) {
116157 themeService .activeThemeTimerUrl (request );
0 commit comments