修改:使用 lombok
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
package net.tccn.redim.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Cacheable(interval = 5 * 60)
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(catalog = "redbbs", name = "im_msgrecord", comment = "[聊天记录表]")
|
||||
public class MsgRecord implements java.io.Serializable {
|
||||
|
||||
@@ -30,54 +35,6 @@ public class MsgRecord implements java.io.Serializable {
|
||||
@Column(comment = "[状态]-10删除,10未发送 20已发送 30已读")
|
||||
private short status = 10;
|
||||
|
||||
public void setMsgid(int msgid) {
|
||||
this.msgid = msgid;
|
||||
}
|
||||
|
||||
public int getMsgid() {
|
||||
return this.msgid;
|
||||
}
|
||||
|
||||
public void setFromuserid(int fromuserid) {
|
||||
this.fromuserid = fromuserid;
|
||||
}
|
||||
|
||||
public int getFromuserid() {
|
||||
return this.fromuserid;
|
||||
}
|
||||
|
||||
public void setTouserid(int touserid) {
|
||||
this.touserid = touserid;
|
||||
}
|
||||
|
||||
public int getTouserid() {
|
||||
return this.touserid;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public void setCreatetime(long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public long getCreatetime() {
|
||||
return this.createtime;
|
||||
}
|
||||
|
||||
public void setStatus(short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
||||
Reference in New Issue
Block a user