feat: 消息类型

This commit is contained in:
2026-04-05 11:44:09 +08:00
parent e565e967fc
commit f90625c125
2 changed files with 20 additions and 2 deletions

View File

@@ -7,6 +7,20 @@ export const MessageRole = {
OTHER: "OTHER",
};
/// 消息类型 0-对话 1-指令 2-中断停止 3-心跳检测 4-通知
export const MessageType = {
// 对话消息
dialog: 0,
// 指令消息
command: 1,
// 中断停止
stop: 2,
// 心跳检测
heartbeat: 3,
// 通知消息
notice: 4,
};
/// 组件的名称
export const CompName = {
// 快速预定卡片
@@ -28,11 +42,13 @@ export const CompName = {
// 回答卡片
longTextCard: "longTextCard",
// 生成合成图片
generatorPhotoCard: "generatorPhotoCard",
aigcPhotoGeneratorCard: "aigcPhotoGeneratorCard",
};
/// 发送的指令类型
export const Command = {
// 通知消息
welcome: "Command.welcome",
// 快速预定
quickBooking: "Command.quickBooking",
// 探索发现
@@ -47,4 +63,6 @@ export const Command = {
myWorkOrder: "Command.myWorkOrder",
// 反馈意见
feedbackCard: "Command.feedbackCard",
// 生成合成图片
aigcPhotoGenerator: "Command.aigcPhotoGenerator",
};