entity
This commit is contained in:
parent
a4e04a9939
commit
a2ac4f53b5
|
|
@ -7,7 +7,7 @@ import { Schema as WechatUser } from './WechatUser';
|
|||
import { Schema as Application } from './Application';
|
||||
import { Schema as ExtraFile } from './ExtraFile';
|
||||
|
||||
type Type = 'text' | 'image' | 'audio' | 'video' | 'news' | 'link';
|
||||
type Type = 'text' | 'image' | 'audio' | 'video' | 'news';
|
||||
|
||||
export interface Schema extends EntityShape {
|
||||
application: Application;
|
||||
|
|
@ -17,7 +17,7 @@ export interface Schema extends EntityShape {
|
|||
createTime?: Datetime;
|
||||
type: Type;
|
||||
text?: Text;
|
||||
file?: ExtraFile;
|
||||
files?: ExtraFile[];
|
||||
news?: String<128>;
|
||||
aaoe?: Boolean; // as agent of entity
|
||||
};
|
||||
|
|
@ -34,11 +34,19 @@ const entityDesc: EntityDesc<Schema, '', '', {
|
|||
createTime: '发送时间',
|
||||
type: '消息类型',
|
||||
text: '文字内容',
|
||||
file: '文件',
|
||||
files: '文件',
|
||||
news: '文章',
|
||||
aaoe: '作为实体的发起者',
|
||||
},
|
||||
|
||||
v: {
|
||||
type: {
|
||||
text: '文字',
|
||||
image: '图片',
|
||||
audio: '音频',
|
||||
video: '视频',
|
||||
news: '图文',
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue