No Description

AttachmentMsg.ts 320B

123456789101112131415
  1. import { MsgBase, MsgType } from './MsgBase';
  2. export class AttachmentMsg extends MsgBase {
  3. type: MsgType = 'attachment';
  4. // 消息内容
  5. msg: string;
  6. static createMsg(baseMsg: Partial<AttachmentMsg>): AttachmentMsg {
  7. const msg = new AttachmentMsg();
  8. Object.assign(msg, baseMsg);
  9. return msg;
  10. }
  11. }