Package com.bytedesk.ai.robot
Class RobotRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<RobotRequest,RobotRestService>
com.bytedesk.ai.robot.RobotRestController
@RestController
@RequestMapping("/api/v1/robot")
@Description("Robot Management Controller - AI robot and chatbot management APIs")
public class RobotRestController
extends BaseRestController<RobotRequest,RobotRestService>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
create
(RobotRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
createLlmThread
(ThreadRequest request) org.springframework.http.ResponseEntity<?>
createPromptRobot
(RobotRequest request) org.springframework.http.ResponseEntity<?>
delete
(RobotRequest request) 通用的delete实现 减少子类重复代码export
(RobotRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>
queryByOrg
(RobotRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
queryByUid
(RobotRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
queryByUser
(RobotRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
update
(RobotRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
updateAvatar
(RobotRequest request) org.springframework.http.ResponseEntity<?>
updateKbUid
(RobotRequest request) org.springframework.http.ResponseEntity<?>
updateLlmThread
(ThreadRequest request) org.springframework.http.ResponseEntity<?>
updatePromptRobot
(RobotRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
robotRestService
-
-
Constructor Details
-
RobotRestController
public RobotRestController()
-
-
Method Details
-
queryByOrg
Description copied from class:BaseRestController
通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrg
in classBaseRestController<RobotRequest,
RobotRestService>
-
queryByUser
Description copied from class:BaseRestController
通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUser
in classBaseRestController<RobotRequest,
RobotRestService>
-
queryByUid
Description copied from class:BaseRestController
通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUid
in classBaseRestController<RobotRequest,
RobotRestService>
-
create
@ActionAnnotation(title="\u673a\u5668\u4eba", action="\u65b0\u5efa", description="create robot") public org.springframework.http.ResponseEntity<?> create(@RequestBody RobotRequest request) Description copied from class:BaseRestController
通用的create实现 减少子类重复代码- Overrides:
create
in classBaseRestController<RobotRequest,
RobotRestService>
-
createLlmThread
@ActionAnnotation(title="\u673a\u5668\u4eba", action="\u65b0\u5efa", description="create robot thread") @PostMapping("/create/llm/thread") public org.springframework.http.ResponseEntity<?> createLlmThread(@RequestBody ThreadRequest request) -
updateLlmThread
@ActionAnnotation(title="\u673a\u5668\u4eba", action="\u66f4\u65b0", description="update robot thread") @PostMapping("/update/llm/thread") public org.springframework.http.ResponseEntity<?> updateLlmThread(@RequestBody ThreadRequest request) -
createPromptRobot
@PostMapping("/create/prompt") public org.springframework.http.ResponseEntity<?> createPromptRobot(@RequestBody RobotRequest request) -
update
@ActionAnnotation(title="\u673a\u5668\u4eba", action="\u66f4\u65b0", description="update robot") public org.springframework.http.ResponseEntity<?> update(@RequestBody RobotRequest request) Description copied from class:BaseRestController
通用的update实现 减少子类重复代码- Overrides:
update
in classBaseRestController<RobotRequest,
RobotRestService>
-
updateAvatar
@PreAuthorize("hasAuthority(\'ROBOT_UPDATE\')") @ActionAnnotation(title="\u673a\u5668\u4eba", action="\u66f4\u65b0", description="update robot avatar") @PostMapping("/update/avatar") public org.springframework.http.ResponseEntity<?> updateAvatar(@RequestBody RobotRequest request) -
updatePromptRobot
@PreAuthorize("hasAuthority(\'ROBOT_UPDATE\')") @ActionAnnotation(title="\u673a\u5668\u4eba", action="\u66f4\u65b0", description="update prompt robot") @PostMapping("/update/prompt") public org.springframework.http.ResponseEntity<?> updatePromptRobot(@RequestBody RobotRequest request) -
updateKbUid
@PreAuthorize("hasAuthority(\'ROBOT_UPDATE\')") @ActionAnnotation(title="\u673a\u5668\u4eba", action="\u66f4\u65b0", description="update robot kbUid") @PostMapping("/update/kbUid") public org.springframework.http.ResponseEntity<?> updateKbUid(@RequestBody RobotRequest request) -
delete
@PreAuthorize("hasAuthority(\'ROBOT_DELETE\')") @ActionAnnotation(title="\u673a\u5668\u4eba", action="\u5220\u9664", description="delete robot") public org.springframework.http.ResponseEntity<?> delete(@RequestBody RobotRequest request) Description copied from class:BaseRestController
通用的delete实现 减少子类重复代码- Overrides:
delete
in classBaseRestController<RobotRequest,
RobotRestService>
-
export
@PreAuthorize("hasAuthority(\'ROBOT_EXPORT\')") public Object export(RobotRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestController
export- Overrides:
export
in classBaseRestController<RobotRequest,
RobotRestService> - Parameters:
request
- role- Returns:
- json
-