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 FaqElasticService
private final FaqRestService
private 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:
queryByOrg
in classBaseRestController<FaqRequest,
FaqRestService>
-
queryByUser
Description copied from class:BaseRestController
通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUser
in classBaseRestController<FaqRequest,
FaqRestService>
-
queryByUid
Description copied from class:BaseRestController
通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUid
in 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:
create
in 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:
update
in 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:
delete
in 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:BaseRestController
export- Overrides:
export
in 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)
-