캐릭터 챗봇 #338
| @@ -18,8 +18,6 @@ import org.springframework.http.HttpHeaders | |||||||
| import org.springframework.http.HttpMethod | import org.springframework.http.HttpMethod | ||||||
| import org.springframework.http.MediaType | import org.springframework.http.MediaType | ||||||
| import org.springframework.http.client.SimpleClientHttpRequestFactory | import org.springframework.http.client.SimpleClientHttpRequestFactory | ||||||
| import org.springframework.retry.annotation.Backoff |  | ||||||
| import org.springframework.retry.annotation.Retryable |  | ||||||
| import org.springframework.security.access.prepost.PreAuthorize | import org.springframework.security.access.prepost.PreAuthorize | ||||||
| import org.springframework.web.bind.annotation.GetMapping | import org.springframework.web.bind.annotation.GetMapping | ||||||
| import org.springframework.web.bind.annotation.PathVariable | import org.springframework.web.bind.annotation.PathVariable | ||||||
| @@ -86,11 +84,6 @@ class AdminChatCharacterController( | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @PostMapping("/register") |     @PostMapping("/register") | ||||||
|     @Retryable( |  | ||||||
|         value = [Exception::class], |  | ||||||
|         maxAttempts = 3, |  | ||||||
|         backoff = Backoff(delay = 1000) |  | ||||||
|     ) |  | ||||||
|     fun registerCharacter( |     fun registerCharacter( | ||||||
|         @RequestPart("image") image: MultipartFile, |         @RequestPart("image") image: MultipartFile, | ||||||
|         @RequestPart("request") requestString: String |         @RequestPart("request") requestString: String | ||||||
| @@ -236,11 +229,6 @@ class AdminChatCharacterController( | |||||||
|      * @throws SodaException 변경된 데이터가 없거나 캐릭터를 찾을 수 없는 경우 |      * @throws SodaException 변경된 데이터가 없거나 캐릭터를 찾을 수 없는 경우 | ||||||
|      */ |      */ | ||||||
|     @PutMapping("/update") |     @PutMapping("/update") | ||||||
|     @Retryable( |  | ||||||
|         value = [Exception::class], |  | ||||||
|         maxAttempts = 3, |  | ||||||
|         backoff = Backoff(delay = 1000) |  | ||||||
|     ) |  | ||||||
|     fun updateCharacter( |     fun updateCharacter( | ||||||
|         @RequestPart(value = "image", required = false) image: MultipartFile?, |         @RequestPart(value = "image", required = false) image: MultipartFile?, | ||||||
|         @RequestPart("request") requestString: String |         @RequestPart("request") requestString: String | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user