package com.mindskip.xzs.domain; import com.fasterxml.jackson.annotation.JsonFormat; import java.io.Serializable; import java.util.Date; /** * @version 2.2.0 * @description: 消息 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司 * @date 2021 /9/7 9:45 */ public class Message implements Serializable { private static final long serialVersionUID = -3510265139403747341L; private Integer id; /** * 标题 */ private String title; /** * 内容 */ private String content; /** * 创建时间 */ private Date createTime; /** * 发送人 */ private Integer sendUserId; /** * 发送人用户名 */ private String sendUserName; /** * 发送人真实名 */ private String sendRealName; /** * 接收人数量 */ private Integer receiveUserCount; /** * 已读数量 */ private Integer readCount; /** * Gets id. * * @return the id */ public Integer getId() { return id; } /** * Sets id. * * @param id the id */ public void setId(Integer id) { this.id = id; } /** * Gets title. * * @return the title */ public String getTitle() { return title; } /** * Sets title. * * @param title the title */ public void setTitle(String title) { this.title = title == null ? null : title.trim(); } /** * Gets content. * * @return the content */ public String getContent() { return content; } /** * Sets content. * * @param content the content */ public void setContent(String content) { this.content = content == null ? null : content.trim(); } /** * Gets create time. * * @return the create time */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") public Date getCreateTime() { return createTime; } /** * Sets create time. * * @param createTime the create time */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * Gets send user id. * * @return the send user id */ public Integer getSendUserId() { return sendUserId; } /** * Sets send user id. * * @param sendUserId the send user id */ public void setSendUserId(Integer sendUserId) { this.sendUserId = sendUserId; } /** * Gets send user name. * * @return the send user name */ public String getSendUserName() { return sendUserName; } /** * Sets send user name. * * @param sendUserName the send user name */ public void setSendUserName(String sendUserName) { this.sendUserName = sendUserName == null ? null : sendUserName.trim(); } /** * Gets send real name. * * @return the send real name */ public String getSendRealName() { return sendRealName; } /** * Sets send real name. * * @param sendRealName the send real name */ public void setSendRealName(String sendRealName) { this.sendRealName = sendRealName == null ? null : sendRealName.trim(); } /** * Gets receive user count. * * @return the receive user count */ public Integer getReceiveUserCount() { return receiveUserCount; } /** * Sets receive user count. * * @param receiveUserCount the receive user count */ public void setReceiveUserCount(Integer receiveUserCount) { this.receiveUserCount = receiveUserCount; } /** * Gets read count. * * @return the read count */ public Integer getReadCount() { return readCount; } /** * Sets read count. * * @param readCount the read count */ public void setReadCount(Integer readCount) { this.readCount = readCount; } }