123456789101112131415 |
- import { MsgBase, MsgType } from './MsgBase';
-
- export class AttachmentMsg extends MsgBase {
- type: MsgType = 'attachment';
-
- // 消息内容
- msg: string;
-
- static createMsg(baseMsg: Partial<AttachmentMsg>): AttachmentMsg {
- const msg = new AttachmentMsg();
- Object.assign(msg, baseMsg);
- return msg;
- }
- }
|