75 lines
1.2 KiB
Java
75 lines
1.2 KiB
Java
package live.tomey.api.express.entity;
|
|
|
|
import java.util.Date;
|
|
|
|
public class Messages {
|
|
|
|
private long id;
|
|
private long accountId;
|
|
private String title;
|
|
private String content;
|
|
private Integer isRead;
|
|
private Date sendTime;
|
|
|
|
public Messages() {
|
|
}
|
|
|
|
public Messages(long accountId, String title, String content) {
|
|
this.accountId = accountId;
|
|
this.title = title;
|
|
this.content = content;
|
|
this.isRead = 1;
|
|
this.sendTime = new Date();
|
|
}
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
public long getAccountId() {
|
|
return accountId;
|
|
}
|
|
|
|
public void setAccountId(long accountId) {
|
|
this.accountId = accountId;
|
|
}
|
|
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
|
|
public Integer getIsRead() {
|
|
return isRead;
|
|
}
|
|
|
|
public void setIsRead(Integer isRead) {
|
|
this.isRead = isRead;
|
|
}
|
|
|
|
public Date getSendTime() {
|
|
return sendTime;
|
|
}
|
|
|
|
public void setSendTime(Date sendTime) {
|
|
this.sendTime = sendTime;
|
|
}
|
|
}
|