Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9d0dac87
authored
Oct 12, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
msg
parent
f220c10b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
51 deletions
xim/models/chat.ts
xim/models/chat.ts
View file @
9d0dac87
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment