mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-18 19:20:05 +08:00
调整controller swagger 注释
This commit is contained in:
parent
7aef30cbe8
commit
1f5878ed5b
@ -29,7 +29,7 @@ import java.util.function.Consumer;
|
||||
* @time 2024/4/13 17:44
|
||||
* @since 1.0
|
||||
*/
|
||||
@Tag(name = "AI模块")
|
||||
@Tag(name = "A1-AI聊天")
|
||||
@RestController
|
||||
@RequestMapping("/ai")
|
||||
@Slf4j
|
||||
|
@ -22,7 +22,7 @@ import java.util.List;
|
||||
* @time 2024/4/13 17:44
|
||||
* @since 1.0
|
||||
*/
|
||||
@Tag(name = "A2聊天-对话")
|
||||
@Tag(name = "A2-聊天-对话")
|
||||
@RestController
|
||||
@RequestMapping("/ai/chat/conversation")
|
||||
@Slf4j
|
||||
|
@ -0,0 +1,22 @@
|
||||
package cn.iocoder.yudao.module.ai.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* chat message
|
||||
*
|
||||
* @author fansili
|
||||
* @time 2024/4/24 17:22
|
||||
* @since 1.0
|
||||
*/
|
||||
@Tag(name = "A3-聊天-对话")
|
||||
@RestController
|
||||
@RequestMapping("/ai/chat/conversation")
|
||||
@Slf4j
|
||||
@AllArgsConstructor
|
||||
public class ChatMessageController {
|
||||
}
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user