128 lines
2.5 KiB
Java
128 lines
2.5 KiB
Java
package com.cyynote.model;
|
|
|
|
|
|
import lombok.Data;
|
|
import org.noear.wood.annotation.PrimaryKey;
|
|
import org.noear.wood.annotation.Table;
|
|
|
|
@Data
|
|
@Table("note")
|
|
public class NoteModel {
|
|
@PrimaryKey
|
|
public Integer id;
|
|
|
|
public Integer pid;
|
|
|
|
public String title;
|
|
|
|
public String context;
|
|
|
|
public String conjson;
|
|
|
|
public String createtime;
|
|
|
|
public String updatetime;
|
|
|
|
public String viewtime;
|
|
|
|
public Integer userid;
|
|
|
|
public Integer flag;
|
|
|
|
public String tags;
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public void setPid(Integer pid) {
|
|
this.pid = pid;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public void setContext(String context) {
|
|
this.context = context;
|
|
}
|
|
|
|
public void setConjson(String conjson) {
|
|
this.conjson = conjson;
|
|
}
|
|
|
|
public void setCreatetime(String createtime) {
|
|
this.createtime = createtime;
|
|
}
|
|
|
|
public void setUpdatetime(String updatetime) {
|
|
this.updatetime = updatetime;
|
|
}
|
|
|
|
public void setViewtime(String viewtime) {
|
|
this.viewtime = viewtime;
|
|
}
|
|
|
|
public void setFlag(Integer flag) {
|
|
this.flag = flag;
|
|
}
|
|
|
|
public void setUserid(Integer userid) {
|
|
this.userid = userid;
|
|
}
|
|
|
|
public Integer getUserid() {
|
|
return this.userid;
|
|
}
|
|
|
|
|
|
public String toString() {
|
|
return "NoteModel(id=" + getId() + ", pid=" + getPid() + ", title=" + getTitle() + ", context=" + getContext() + ", conjson=" + getConjson() + ", createtime=" + getCreatetime() + ", updatetime=" + getUpdatetime() + ", viewtime=" + getViewtime() + ", flag=" + getFlag() + ")";
|
|
}
|
|
|
|
public Integer getId() {
|
|
return this.id;
|
|
}
|
|
|
|
public Integer getPid() {
|
|
return this.pid;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return this.title;
|
|
}
|
|
|
|
public String getContext() {
|
|
return this.context;
|
|
}
|
|
|
|
public String getConjson() {
|
|
return this.conjson;
|
|
}
|
|
|
|
public String getCreatetime() {
|
|
return this.createtime;
|
|
}
|
|
|
|
public String getUpdatetime() {
|
|
return this.updatetime;
|
|
}
|
|
|
|
public String getViewtime() {
|
|
return this.viewtime;
|
|
}
|
|
|
|
public Integer getFlag() {
|
|
return this.flag;
|
|
}
|
|
|
|
public void setTags(String tags) {
|
|
this.tags = tags;
|
|
}
|
|
|
|
public String getTags() {
|
|
return this.tags;
|
|
}
|
|
}
|
|
|