【增加】AI 配置 Chat角色

This commit is contained in:
cherishsince
2024-05-16 00:18:29 +08:00
parent 9658af7c04
commit f14032d69d
3 changed files with 21 additions and 11 deletions

View File

@ -5,8 +5,8 @@ import { config } from '@/config/axios/config'
// 聊天VO
export interface ChatMessageVO {
id: string // 编号
conversationId: string // 会话编号
id: number // 编号
conversationId: number // 会话编号
type: string // 消息类型
userId: string // 用户编号
roleId: string // 角色编号
@ -25,7 +25,7 @@ export interface ChatMessageSendVO {
// AI chat 聊天
export const ChatMessageApi = {
// 消息列表
messageList: async (conversationId: string) => {
messageList: async (conversationId: number) => {
return await request.get({
url: `/ai/chat/message/list-by-conversation-id?conversationId=${conversationId}`
})