fix(api): 对齐 ai 模块前端 API 类型与后端 VO

- chat/message: userId/roleId string→number, model number→string(类型严重不匹配)
- music: tags string→string[](后端是 List<String>)
- 统一 createTime/finishTime Date→string
vo
xingyu4j 2026-06-07 13:53:34 +08:00
parent 3c443a4825
commit 726649b45e
6 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ export namespace AiChatConversationApi {
temperature: number; // 温度参数
maxTokens: number; // 单条回复的最大 Token 数量
maxContexts: number; // 上下文的最大 Message 数量
createTime?: Date; // 创建时间
createTime?: string; // 创建时间
systemMessage?: string; // 角色设定
modelName?: string; // 模型名字
roleAvatar?: string; // 角色头像

View File

@ -14,9 +14,9 @@ export namespace AiChatMessageApi {
id: number; // 编号
conversationId: number; // 对话编号
type: string; // 消息类型
userId: string; // 用户编号
roleId: string; // 角色编号
model: number; // 模型标志
userId: number; // 用户编号
roleId: number; // 角色编号
model: string; // 模型标志
modelId: number; // 模型编号
content: string; // 聊天内容
reasoningContent?: string; // 推理内容(深度思考)

View File

@ -20,7 +20,7 @@ export namespace AiImageApi {
taskId: number; // 任务编号
buttons: ImageMidjourneyButtons[]; // mj 操作按钮
createTime: Date; // 创建时间
finishTime: Date; // 完成时间
finishTime: string; // 完成时间
}
export interface ImageMidjourneyButtons {

View File

@ -18,7 +18,7 @@ export namespace AiMusicApi {
platform: string; // 模型平台
model: string; // 模型
generateMode: number; // 生成模式
tags: string; // 音乐风格标签
tags: string[]; // 音乐风格标签
duration: number; // 音乐时长
publicStatus: boolean; // 是否发布
taskId: string; // 任务id

View File

@ -11,7 +11,7 @@ export namespace AiWorkflowApi {
graph: string; // 工作流模型 JSON 数据
remark?: string; // 备注
status: number; // 状态
createTime?: Date; // 创建时间
createTime?: string; // 创建时间
}
}

View File

@ -25,7 +25,7 @@ export namespace AiWriteApi {
model?: string; // 模型
generatedContent?: string; // 生成的内容
errorMessage?: string; // 错误信息
createTime?: Date; // 创建时间
createTime?: string; // 创建时间
}
export interface AiWritePageReqVO extends PageParam {