Skip to content

Commit

Permalink
remove s
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Nov 12, 2024
1 parent 7f17e14 commit 4ec8e15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public class ChatbotController {
@Resource
private ChatbotService chatbotService;

@Operation(summary = "new thread", description = "Create a chat threads")
@Operation(summary = "new thread", description = "Create a chat thread")
@PostMapping("/threads")
public ResponseEntity<ChatThreadVO> createChatThread(@RequestBody ChatbotThreadReq chatbotThreadReq) {
ChatThreadDTO chatThreadDTO = ChatThreadConverter.INSTANCE.fromReq2DTO(chatbotThreadReq);
return ResponseEntity.success(chatbotService.createChatThread(chatThreadDTO));
}

@Operation(summary = "update thread", description = "Update a chat threads")
@Operation(summary = "update thread", description = "Update a chat thread")
@PutMapping("/threads/{threadId}")
public ResponseEntity<ChatThreadVO> updateChatThread(
@PathVariable Long threadId, @RequestBody ChatbotThreadReq chatbotThreadReq) {
Expand All @@ -67,13 +67,13 @@ public ResponseEntity<ChatThreadVO> updateChatThread(
return ResponseEntity.success(chatbotService.updateChatThread(chatThreadDTO));
}

@Operation(summary = "delete thread", description = "Delete a chat threads")
@Operation(summary = "delete thread", description = "Delete a chat thread")
@DeleteMapping("/threads/{threadId}")
public ResponseEntity<Boolean> deleteChatThread(@PathVariable Long threadId) {
return ResponseEntity.success(chatbotService.deleteChatThread(threadId));
}

@Operation(summary = "get thread", description = "Get a chat threads")
@Operation(summary = "get thread", description = "Get a chat thread")
@GetMapping("/threads/{threadId}")
public ResponseEntity<ChatThreadVO> getChatThread(@PathVariable Long threadId) {
return ResponseEntity.success(chatbotService.getChatThread(threadId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ public ResponseEntity<List<AuthPlatformVO>> authorizedPlatforms() {
return ResponseEntity.success(llmConfigService.authorizedPlatforms());
}

@Operation(summary = "test auth platform", description = "Test authorized platforms")
@Operation(summary = "test auth platform", description = "Test authorized platform")
@PostMapping("/auth-platforms/test")
public ResponseEntity<Boolean> testAuthorizedPlatform(@RequestBody AuthPlatformReq authPlatformReq) {
AuthPlatformDTO authPlatformDTO = AuthPlatformConverter.INSTANCE.fromReq2DTO(authPlatformReq);
return ResponseEntity.success(llmConfigService.testAuthorizedPlatform(authPlatformDTO));
}

@Operation(summary = "add auth platform", description = "Add authorized platforms")
@Operation(summary = "add auth platform", description = "Add authorized platform")
@PostMapping("/auth-platforms")
public ResponseEntity<AuthPlatformVO> addAuthorizedPlatform(@RequestBody AuthPlatformReq authPlatformReq) {
AuthPlatformDTO authPlatformDTO = AuthPlatformConverter.INSTANCE.fromReq2DTO(authPlatformReq);
return ResponseEntity.success(llmConfigService.addAuthorizedPlatform(authPlatformDTO));
}

@Operation(summary = "update auth platform", description = "Update authorized platforms")
@Operation(summary = "update auth platform", description = "Update authorized platform")
@PutMapping("/auth-platforms/{authId}")
public ResponseEntity<AuthPlatformVO> updateAuthorizedPlatform(
@PathVariable Long authId, @RequestBody AuthPlatformReq authPlatformReq) {
Expand All @@ -91,25 +91,25 @@ public ResponseEntity<AuthPlatformVO> updateAuthorizedPlatform(
return ResponseEntity.success(llmConfigService.updateAuthorizedPlatform(authPlatformDTO));
}

@Operation(summary = "get auth platform", description = "Get authorized platforms")
@Operation(summary = "get auth platform", description = "Get a authorized platform")
@GetMapping("/auth-platforms/{authId}")
public ResponseEntity<AuthPlatformVO> getAuthorizedPlatform(@PathVariable Long authId) {
return ResponseEntity.success(llmConfigService.getAuthorizedPlatform(authId));
}

@Operation(summary = "delete auth platform", description = "Delete authorized platforms")
@Operation(summary = "delete auth platform", description = "Delete a authorized platform")
@DeleteMapping("/auth-platforms/{authId}")
public ResponseEntity<Boolean> deleteAuthorizedPlatform(@PathVariable Long authId) {
return ResponseEntity.success(llmConfigService.deleteAuthorizedPlatform(authId));
}

@Operation(summary = "activate auth platform", description = "Activate authorized platforms")
@Operation(summary = "activate auth platform", description = "Activate authorized platform")
@PostMapping("/auth-platforms/{authId}/activate")
public ResponseEntity<Boolean> activateAuthorizedPlatform(@PathVariable Long authId) {
return ResponseEntity.success(llmConfigService.activateAuthorizedPlatform(authId));
}

@Operation(summary = "deactivate auth platform", description = "Deactivate authorized platforms")
@Operation(summary = "deactivate auth platform", description = "Deactivate authorized platform")
@PostMapping("/auth-platforms/{authId}/deactivate")
public ResponseEntity<Boolean> deactivateAuthorizedPlatform(@PathVariable Long authId) {
return ResponseEntity.success(llmConfigService.deactivateAuthorizedPlatform(authId));
Expand Down

0 comments on commit 4ec8e15

Please sign in to comment.