QyMsgContent.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package com.cyksj.model.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import lombok.Data;
  7. import lombok.NoArgsConstructor;
  8. import lombok.experimental.Accessors;
  9. @Data
  10. @NoArgsConstructor
  11. @Accessors(chain = true)
  12. @SearchBean(tables = "qy_msg_content")
  13. public class QyMsgContent {
  14. @TableId(value = "id",type = IdType.AUTO)
  15. private Long id;
  16. /**
  17. * 消息id,消息的唯一标识,企业可以使用此字段进行消息去重
  18. */
  19. private String msgid;
  20. /**
  21. * 消息动作,目前有send(发送消息)/recall(撤回消息)/switch(切换企业日志)三种类型
  22. */
  23. private String action;
  24. /**
  25. * 成员id
  26. */
  27. private String followId;
  28. /**
  29. * 客户id
  30. */
  31. private String externalUserid;
  32. /**
  33. * 消息发送方id。同一企业内容为userid,非相同企业为external_userid。消息如果是机器人发出,也为external_userid
  34. */
  35. @TableField("`from`")
  36. private String from;
  37. private String fromView;
  38. /**
  39. * 消息接收方列表,可能是多个,同一个企业内容为userid,非相同企业为external_userid。数组
  40. */
  41. private String tolist;
  42. private String tolistView;
  43. /**
  44. * 群聊消息的群id
  45. */
  46. private String roomid;
  47. private String roomidView;
  48. /**
  49. * 消息发送时间戳,utc时间,ms单位
  50. */
  51. private String msgtime;
  52. /**
  53. * 消息类型
  54. */
  55. private String msgtype;
  56. /**
  57. * 文字
  58. */
  59. private String text;
  60. /**
  61. * 图片
  62. */
  63. private String image;
  64. /**
  65. * 小程序
  66. */
  67. private String weapp;
  68. /**
  69. * 红包消息
  70. */
  71. private String redpacket;
  72. /**
  73. * 文件
  74. */
  75. private String file;
  76. /**
  77. * 视频
  78. */
  79. private String video;
  80. /**
  81. * 语音
  82. */
  83. private String voice;
  84. /**
  85. * 多条聊天记录
  86. */
  87. private String chatrecord;
  88. /**
  89. * 文件名称
  90. */
  91. private String filename;
  92. /**
  93. * 撤回
  94. */
  95. @TableField("`revoke`")
  96. private String revoke;
  97. /**
  98. * 表情包
  99. */
  100. private String emotion;
  101. /**
  102. * 卡片消息
  103. */
  104. private String card;
  105. /**
  106. * 文件URL
  107. */
  108. private String url;
  109. }