Package com.bytedesk.kbase.llm_faq
Class FaqRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<FaqRequest,FaqRestService>
com.bytedesk.kbase.llm_faq.FaqRestController
@RestController
@RequestMapping("/api/v1/faq")
public class FaqRestController
extends BaseRestController<FaqRequest,FaqRestService>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FaqElasticServiceprivate final FaqRestServiceprivate FaqVectorService -
Constructor Summary
ConstructorsConstructorDescriptionFaqRestController(FaqRestService faqRestService, FaqElasticService faqElasticService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>create(FaqRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>delete(FaqRequest request) 通用的delete实现 减少子类重复代码org.springframework.http.ResponseEntity<?>deleteAll(FaqRequest request) org.springframework.http.ResponseEntity<?>enable(FaqRequest request) export(FaqRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>queryByOrg(FaqRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUid(FaqRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUser(FaqRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>update(FaqRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>updateAllIndex(FaqRequest request) org.springframework.http.ResponseEntity<?>updateAllVectorIndex(FaqRequest request) org.springframework.http.ResponseEntity<?>updateIndex(FaqRequest request) org.springframework.http.ResponseEntity<?>updateVectorIndex(FaqRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
faqRestService
-
faqElasticService
-
faqVectorService
-
-
Constructor Details
-
FaqRestController
-
-
Method Details
-
queryByOrg
Description copied from class:BaseRestController通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrgin classBaseRestController<FaqRequest,FaqRestService>
-
queryByUser
Description copied from class:BaseRestController通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUserin classBaseRestController<FaqRequest,FaqRestService>
-
queryByUid
Description copied from class:BaseRestController通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUidin classBaseRestController<FaqRequest,FaqRestService>
-
create
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u65b0\u5efa", description="create faq") @PreAuthorize("hasAuthority(\'KBASE_CREATE\')") public org.springframework.http.ResponseEntity<?> create(@RequestBody FaqRequest request) Description copied from class:BaseRestController通用的create实现 减少子类重复代码- Overrides:
createin classBaseRestController<FaqRequest,FaqRestService>
-
update
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u66f4\u65b0", description="update faq") @PreAuthorize("hasAuthority(\'KBASE_UPDATE\')") public org.springframework.http.ResponseEntity<?> update(@RequestBody FaqRequest request) Description copied from class:BaseRestController通用的update实现 减少子类重复代码- Overrides:
updatein classBaseRestController<FaqRequest,FaqRestService>
-
delete
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u5220\u9664", description="delete faq") @PreAuthorize("hasAuthority(\'KBASE_DELETE\')") public org.springframework.http.ResponseEntity<?> delete(@RequestBody FaqRequest request) Description copied from class:BaseRestController通用的delete实现 减少子类重复代码- Overrides:
deletein classBaseRestController<FaqRequest,FaqRestService>
-
deleteAll
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u5220\u9664\u6240\u6709", description="delete faq all") @PreAuthorize("hasAuthority(\'KBASE_DELETE\')") @PostMapping("/deleteAll") public org.springframework.http.ResponseEntity<?> deleteAll(@RequestBody FaqRequest request) -
enable
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u542f\u7528", description="enable faq") @PostMapping("/enable") public org.springframework.http.ResponseEntity<?> enable(@RequestBody FaqRequest request) -
export
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u5bfc\u51fa", description="export faq") @PreAuthorize("hasAuthority(\'KBASE_EXPORT\')") @GetMapping("/export") public Object export(FaqRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestControllerexport- Overrides:
exportin classBaseRestController<FaqRequest,FaqRestService> - Parameters:
request- role- Returns:
- json
-
updateIndex
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u66f4\u65b0\u7d22\u5f15", description="update faq index") @PostMapping("/updateIndex") public org.springframework.http.ResponseEntity<?> updateIndex(@RequestBody FaqRequest request) -
updateVectorIndex
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u66f4\u65b0\u5411\u91cf\u7d22\u5f15", description="update faq vector index") @PostMapping("/updateVectorIndex") public org.springframework.http.ResponseEntity<?> updateVectorIndex(@RequestBody FaqRequest request) -
updateAllIndex
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u66f4\u65b0\u6240\u6709\u7d22\u5f15", description="update all faq index") @PostMapping("/updateAllIndex") public org.springframework.http.ResponseEntity<?> updateAllIndex(@RequestBody FaqRequest request) -
updateAllVectorIndex
@ActionAnnotation(title="\u5e38\u89c1\u95ee\u9898", action="\u66f4\u65b0\u6240\u6709\u5411\u91cf\u7d22\u5f15", description="update all faq vector index") @PostMapping("/updateAllVectorIndex") public org.springframework.http.ResponseEntity<?> updateAllVectorIndex(@RequestBody FaqRequest request)
-