Commit 9d0dac87 by Sixong.Zhu

msg

parent f220c10b
Showing with 2 additions and 51 deletions
import { MessageHandled } from "@/customer-service/model"; import { MessageHandled, MessageType } from "@/customer-service/model";
export interface Chat { export interface Chat {
id: number; id: number;
...@@ -56,7 +56,7 @@ export interface Message { ...@@ -56,7 +56,7 @@ export interface Message {
eid: string; eid: string;
id: number; id: number;
ts: number; ts: number;
type: string; type: MessageType;
msg: string; msg: string;
total_read_count: number; total_read_count: number;
read_count: number; read_count: number;
...@@ -96,44 +96,6 @@ export interface Member { ...@@ -96,44 +96,6 @@ export interface Member {
nick_name: string; nick_name: string;
} }
/**
* 消息类型
* @param text 文本
* @param file 文件
* @param image 图片
* @param voice 语音
* @param notify 通知类型
* @param text.notice 文本消息:公告文本
* @param video 视频
* @param url 卡片消息
* @param forward 转发消息
* @param quote 引用消息
* @param comment.forward 转发评论消息
* @param time 时间行
*/
export type ChatMessageType =
| "text"
| "file"
| "image"
| "voice"
| "notify"
| "text.notice"
| "video"
| "url"
| "forward"
| "quote"
| "comment.forward"
| "time";
export type ChatInputBoxData = { key: string } & (
| { at_id: string; type: "text"; body: TextMessageBody }
| { type: "image"; body: ImageMessageBody }
| { type: "file"; body: FileMessageBody }
| { type: "video"; body: VideoMessageBody }
| { at_id: string; type: "quote"; body: QuoteMessageBody }
| { at_id: string; type: "tm-at-member"; body: TextMessageBody }
);
export type TextMessageBody = { export type TextMessageBody = {
text: string; text: string;
}; };
...@@ -233,17 +195,6 @@ export type CommentForwardMessageBody = { ...@@ -233,17 +195,6 @@ export type CommentForwardMessageBody = {
comment_ids: number[]; // 评论id集合 comment_ids: number[]; // 评论id集合
}; };
// export type SpecifiedChatRecordMsg = SpecifiedChatRecord & {
// message?: Message | undefined | null,
// messageBody?: {
// "name"?: string, // "高达.txt",
// "url"?: string, // "9a5bd43db73681f6a90b9e717d8698c2",
// "size"?: number, // 4,
// "remark"?: string, // "C:\\Users\\Administrator\\Desktop\\高达.txt"
// }
// };
// 客服
export interface CsUser { export interface CsUser {
id: number; id: number;
oid: string; oid: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment