mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	调整controller swagger 注释
This commit is contained in:
		| @@ -29,7 +29,7 @@ import java.util.function.Consumer; | |||||||
|  * @time 2024/4/13 17:44 |  * @time 2024/4/13 17:44 | ||||||
|  * @since 1.0 |  * @since 1.0 | ||||||
|  */ |  */ | ||||||
| @Tag(name = "AI模块") | @Tag(name = "A1-AI聊天") | ||||||
| @RestController | @RestController | ||||||
| @RequestMapping("/ai") | @RequestMapping("/ai") | ||||||
| @Slf4j | @Slf4j | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ import java.util.List; | |||||||
|  * @time 2024/4/13 17:44 |  * @time 2024/4/13 17:44 | ||||||
|  * @since 1.0 |  * @since 1.0 | ||||||
|  */ |  */ | ||||||
| @Tag(name = "A2聊天-对话") | @Tag(name = "A2-聊天-对话") | ||||||
| @RestController | @RestController | ||||||
| @RequestMapping("/ai/chat/conversation") | @RequestMapping("/ai/chat/conversation") | ||||||
| @Slf4j | @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; | package cn.iocoder.yudao.module.ai.controller; | ||||||
|  |  | ||||||
| import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 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.service.ChatRoleService; | ||||||
| import cn.iocoder.yudao.module.ai.vo.*; | import cn.iocoder.yudao.module.ai.vo.*; | ||||||
| import io.swagger.v3.oas.annotations.Operation; | import io.swagger.v3.oas.annotations.Operation; | ||||||
|  | import io.swagger.v3.oas.annotations.tags.Tag; | ||||||
| import lombok.AllArgsConstructor; | import lombok.AllArgsConstructor; | ||||||
|  | import lombok.extern.slf4j.Slf4j; | ||||||
| import org.springframework.validation.annotation.Validated; | import org.springframework.validation.annotation.Validated; | ||||||
| import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||||
|  |  | ||||||
| @@ -14,8 +17,10 @@ import org.springframework.web.bind.annotation.*; | |||||||
|  * @fansili |  * @fansili | ||||||
|  * @since v1.0 |  * @since v1.0 | ||||||
|  */ |  */ | ||||||
|  | @Tag(name = "A4-chat角色") | ||||||
| @RestController | @RestController | ||||||
| @RequestMapping("/chat-role") | @RequestMapping("/ai/chat/role") | ||||||
|  | @Slf4j | ||||||
| @AllArgsConstructor | @AllArgsConstructor | ||||||
| public class ChatRoleController { | public class ChatRoleController { | ||||||
|  |  | ||||||
| @@ -23,7 +28,7 @@ public class ChatRoleController { | |||||||
|  |  | ||||||
|     @Operation(summary = "chat角色 - 角色列表") |     @Operation(summary = "chat角色 - 角色列表") | ||||||
|     @GetMapping("/list") |     @GetMapping("/list") | ||||||
|     public CommonResult<ChatRoleListRes> list(@Validated @ModelAttribute ChatRoleListReq req) { |     public PageResult<ChatRoleListRes> list(@Validated @ModelAttribute ChatRoleListReq req) { | ||||||
|         return chatRoleService.list(req); |         return chatRoleService.list(req); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince