Package com.bytedesk.kbase.llm_webpage
Class WebpageRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<WebpageRequest,WebpageRestService>
com.bytedesk.kbase.llm_webpage.WebpageRestController
@RestController
@RequestMapping("/api/v1/llm/webpage")
public class WebpageRestController
extends BaseRestController<WebpageRequest,WebpageRestService>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WebpageElasticServiceprivate final WebpageRestServiceprivate WebpageVectorService -
Constructor Summary
ConstructorsConstructorDescriptionWebpageRestController(WebpageRestService webpageRestService, WebpageElasticService webpageElasticService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>crawlContent(WebpageRequest request) org.springframework.http.ResponseEntity<?>create(WebpageRequest request) 通用的create实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法org.springframework.http.ResponseEntity<?>delete(WebpageRequest request) 通用的delete实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法org.springframework.http.ResponseEntity<?>deleteAll(WebpageRequest request) org.springframework.http.ResponseEntity<?>enable(WebpageRequest request) export(WebpageRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>queryByOrg(WebpageRequest request) 通用的queryByOrg实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法org.springframework.http.ResponseEntity<?>queryByUser(WebpageRequest request) 通用的queryByUser实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法org.springframework.http.ResponseEntity<?>update(WebpageRequest request) 通用的update实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法org.springframework.http.ResponseEntity<?>updateAllIndex(WebpageRequest request) org.springframework.http.ResponseEntity<?>updateAllVectorIndex(WebpageRequest request) org.springframework.http.ResponseEntity<?>updateIndex(WebpageRequest request) org.springframework.http.ResponseEntity<?>updateVectorIndex(WebpageRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService, queryByUid
-
Field Details
-
webpageRestService
-
webpageElasticService
-
webpageVectorService
-
-
Constructor Details
-
WebpageRestController
public WebpageRestController(WebpageRestService webpageRestService, WebpageElasticService webpageElasticService)
-
-
Method Details
-
queryByOrg
Description copied from class:BaseRestController通用的queryByOrg实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法- Overrides:
queryByOrgin classBaseRestController<WebpageRequest,WebpageRestService>
-
queryByUser
Description copied from class:BaseRestController通用的queryByUser实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法- Overrides:
queryByUserin classBaseRestController<WebpageRequest,WebpageRestService>
-
create
Description copied from class:BaseRestController通用的create实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法- Overrides:
createin classBaseRestController<WebpageRequest,WebpageRestService>
-
update
Description copied from class:BaseRestController通用的update实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法- Overrides:
updatein classBaseRestController<WebpageRequest,WebpageRestService>
-
delete
Description copied from class:BaseRestController通用的delete实现 减少子类重复代码 注意:由于泛型擦除,需要使用PageableRequest.class来查找方法- Overrides:
deletein classBaseRestController<WebpageRequest,WebpageRestService>
-
deleteAll
@PostMapping("/deleteAll") public org.springframework.http.ResponseEntity<?> deleteAll(@RequestBody WebpageRequest request) -
enable
@PostMapping("/enable") public org.springframework.http.ResponseEntity<?> enable(@RequestBody WebpageRequest request) -
crawlContent
@PostMapping("/crawl") public org.springframework.http.ResponseEntity<?> crawlContent(@RequestBody WebpageRequest request) -
export
Description copied from class:BaseRestControllerexport- Overrides:
exportin classBaseRestController<WebpageRequest,WebpageRestService> - Parameters:
request- role- Returns:
- json
-
updateIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u7f51\u9875", action="\u66f4\u65b0\u7d22\u5f15", description="update webpage index") @PostMapping("/updateIndex") public org.springframework.http.ResponseEntity<?> updateIndex(@RequestBody WebpageRequest request) -
updateVectorIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u7f51\u9875", action="\u66f4\u65b0\u5411\u91cf\u7d22\u5f15", description="update webpage vector index") @PostMapping("/updateVectorIndex") public org.springframework.http.ResponseEntity<?> updateVectorIndex(@RequestBody WebpageRequest request) -
updateAllIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u7f51\u9875", action="\u66f4\u65b0\u6240\u6709\u7d22\u5f15", description="update all webpage index") @PostMapping("/updateAllIndex") public org.springframework.http.ResponseEntity<?> updateAllIndex(@RequestBody WebpageRequest request) -
updateAllVectorIndex
@ActionAnnotation(title="\u77e5\u8bc6\u5e93\u7f51\u9875", action="\u66f4\u65b0\u6240\u6709\u5411\u91cf\u7d22\u5f15", description="update all webpage vector index") @PostMapping("/updateAllVectorIndex") public org.springframework.http.ResponseEntity<?> updateAllVectorIndex(@RequestBody WebpageRequest request)
-