Package com.bytedesk.kbase.llm_text
Class TextRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<TextRequest,TextRestService>
com.bytedesk.kbase.llm_text.TextRestController
@RestController
@RequestMapping("/api/v1/llm/text")
@Description("Text Management Controller - LLM text content management and vector processing APIs")
public class TextRestController
extends BaseRestController<TextRequest,TextRestService>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextElasticServiceprivate final TextRestServiceprivate TextVectorService -
Constructor Summary
ConstructorsConstructorDescriptionTextRestController(TextRestService textRestService, TextElasticService textElasticService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>create(TextRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>delete(TextRequest request) 通用的delete实现 减少子类重复代码org.springframework.http.ResponseEntity<?>deleteAll(TextRequest request) org.springframework.http.ResponseEntity<?>enable(TextRequest request) export(TextRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>queryByOrg(TextRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUid(TextRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUser(TextRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>update(TextRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>updateAllIndex(TextRequest request) org.springframework.http.ResponseEntity<?>updateAllVectorIndex(TextRequest request) org.springframework.http.ResponseEntity<?>updateIndex(TextRequest request) org.springframework.http.ResponseEntity<?>updateVectorIndex(TextRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
textRestService
-
textElasticService
-
textVectorService
-
-
Constructor Details
-
TextRestController
-
-
Method Details
-
queryByOrg
Description copied from class:BaseRestController通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrgin classBaseRestController<TextRequest,TextRestService>
-
queryByUser
Description copied from class:BaseRestController通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUserin classBaseRestController<TextRequest,TextRestService>
-
create
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u65b0\u5efa", description="create text") public org.springframework.http.ResponseEntity<?> create(TextRequest request) Description copied from class:BaseRestController通用的create实现 减少子类重复代码- Overrides:
createin classBaseRestController<TextRequest,TextRestService>
-
update
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u66f4\u65b0", description="update text") public org.springframework.http.ResponseEntity<?> update(TextRequest request) Description copied from class:BaseRestController通用的update实现 减少子类重复代码- Overrides:
updatein classBaseRestController<TextRequest,TextRestService>
-
delete
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u5220\u9664", description="delete text") public org.springframework.http.ResponseEntity<?> delete(TextRequest request) Description copied from class:BaseRestController通用的delete实现 减少子类重复代码- Overrides:
deletein classBaseRestController<TextRequest,TextRestService>
-
deleteAll
@PostMapping("/deleteAll") public org.springframework.http.ResponseEntity<?> deleteAll(@RequestBody TextRequest request) -
enable
@PostMapping("/enable") public org.springframework.http.ResponseEntity<?> enable(@RequestBody TextRequest request) -
export
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u5bfc\u51fa", description="export text") public Object export(TextRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestControllerexport- Overrides:
exportin classBaseRestController<TextRequest,TextRestService> - Parameters:
request- role- Returns:
- json
-
queryByUid
Description copied from class:BaseRestController通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUidin classBaseRestController<TextRequest,TextRestService>
-
updateIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u66f4\u65b0\u7d22\u5f15", description="update text index") @PostMapping("/updateIndex") public org.springframework.http.ResponseEntity<?> updateIndex(@RequestBody TextRequest request) -
updateVectorIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u66f4\u65b0\u5411\u91cf\u7d22\u5f15", description="update text vector index") @PostMapping("/updateVectorIndex") public org.springframework.http.ResponseEntity<?> updateVectorIndex(@RequestBody TextRequest request) -
updateAllIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u66f4\u65b0\u6240\u6709\u7d22\u5f15", description="update all text index") @PostMapping("/updateAllIndex") public org.springframework.http.ResponseEntity<?> updateAllIndex(@RequestBody TextRequest request) -
updateAllVectorIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u6587\u672c", action="\u66f4\u65b0\u6240\u6709\u5411\u91cf\u7d22\u5f15", description="update all text vector index") @PostMapping("/updateAllVectorIndex") public org.springframework.http.ResponseEntity<?> updateAllVectorIndex(@RequestBody TextRequest request)
-