|
@@ -1,10 +1,13 @@
|
|
|
package cn.iocoder.yudao.module.ai.controller;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.module.ai.service.ChatRoleService;
|
|
|
import cn.iocoder.yudao.module.ai.vo.*;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -14,8 +17,10 @@ import org.springframework.web.bind.annotation.*;
|
|
|
* @fansili
|
|
|
* @since v1.0
|
|
|
*/
|
|
|
+@Tag(name = "A4-chat角色")
|
|
|
@RestController
|
|
|
-@RequestMapping("/chat-role")
|
|
|
+@RequestMapping("/ai/chat/role")
|
|
|
+@Slf4j
|
|
|
@AllArgsConstructor
|
|
|
public class ChatRoleController {
|
|
|
|
|
@@ -23,7 +28,7 @@ public class ChatRoleController {
|
|
|
|
|
|
@Operation(summary = "chat角色 - 角色列表")
|
|
|
@GetMapping("/list")
|
|
|
- public CommonResult<ChatRoleListRes> list(@Validated @ModelAttribute ChatRoleListReq req) {
|
|
|
+ public PageResult<ChatRoleListRes> list(@Validated @ModelAttribute ChatRoleListReq req) {
|
|
|
return chatRoleService.list(req);
|
|
|
}
|
|
|
|