You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package com.bx.imcommon.model;
|
|
|
|
|
|
|
|
|
|
import com.bx.imcommon.serializer.DateToLongSerializer;
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
public class GroupMessageInfo {
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 消息id
|
|
|
|
|
*/
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 群聊id
|
|
|
|
|
*/
|
|
|
|
|
private Long groupId;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 发送者id
|
|
|
|
|
*/
|
|
|
|
|
private Long sendId;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 消息内容
|
|
|
|
|
*/
|
|
|
|
|
private String content;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 消息内容类型 具体枚举值由应用层定义
|
|
|
|
|
*/
|
|
|
|
|
private Integer type;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 发送时间
|
|
|
|
|
*/
|
|
|
|
|
@JsonSerialize(using = DateToLongSerializer.class)
|
|
|
|
|
private Date sendTime;
|
|
|
|
|
}
|