修改:使用 lombok
This commit is contained in:
parent
5e0c309aba
commit
ea8e9f70bd
@ -1,44 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<application port="5002">
|
||||
|
||||
<resources>
|
||||
|
||||
<listener value="net.tccn.redim.RedbbsListener"/>
|
||||
|
||||
<source name="redis" value="org.redkalex.cache.RedisCacheSource" xxx="16">
|
||||
|
||||
<node addr="redishost" password="hello" port="6379"/>
|
||||
|
||||
<node addr="47.111.150.118" password="*Zhong9307!" port="6064"/>
|
||||
</source>
|
||||
|
||||
<properties load="conf.txt"/>
|
||||
|
||||
</resources>
|
||||
|
||||
<server host="0.0.0.0" port="80" protocol="HTTP" root="root">
|
||||
|
||||
<services autoload="true"/>
|
||||
|
||||
<rest autoload="true" base="net.tccn.bbs.base.BaseServlet" path="os"/>
|
||||
|
||||
<request>
|
||||
|
||||
<remoteaddr value="request.headers.X-Real-IP"/>
|
||||
|
||||
</request>
|
||||
<response>
|
||||
<defcookie domain="" path=""/>
|
||||
<addheader name="Access-Control-Allow-Origin" value="request.headers.Origin" />
|
||||
<addheader name="Access-Control-Allow-Origin" value="request.headers.Origin"/>
|
||||
<setheader name="Access-Control-Allow-Headers" value="request.headers.Access-Control-Request-Headers"/>
|
||||
<setheader name="Access-Control-Allow-Credentials" value="true"/>
|
||||
<options auto="true" />
|
||||
<options auto="true"/>
|
||||
</response>
|
||||
|
||||
<servlets autoload="true" path=""/>
|
||||
|
||||
<render value="net.tccn.bbs.base.EnjoyRender"/>
|
||||
|
||||
</server>
|
||||
|
||||
</application>
|
||||
|
@ -2,11 +2,11 @@
|
||||
isDev=true
|
||||
|
||||
----------- arango conf ----------
|
||||
arango.host=120.24.230.60
|
||||
arango.host=101.132.161.85
|
||||
arango.port=8529
|
||||
arango.database=redbbs
|
||||
arango.user=root
|
||||
arango.password=abc123
|
||||
arango.password=lxgwzswhp0zj
|
||||
|
||||
----------- file conf ----------
|
||||
file.upload_dir=D:/wk/_own/redbbs/root/file_pub/
|
||||
|
@ -1,19 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
||||
|
||||
|
||||
<persistence-unit name="redbbs" transaction-type="RESOURCE_LOCAL">
|
||||
<shared-cache-mode>ALL</shared-cache-mode>
|
||||
<properties>
|
||||
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://558cfc37a10ef.sh.cdb.myqcloud.com:3817/?autoReconnect=true&characterEncoding=utf8&useSSL=true"/>
|
||||
<property name="javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver"/>
|
||||
<property name="javax.persistence.jdbc.user" value="cdb_outerroot"/>
|
||||
<property name="javax.persistence.jdbc.password" value="l237809796"/>
|
||||
<!--<property name="javax.persistence.jdbc.url" value="jdbc:mysql://mysqlhost:3306/?autoReconnect=true&characterEncoding=utf8"/>
|
||||
<property name="javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver"/>
|
||||
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://120.27.215.82:6063"/>
|
||||
<property name="javax.persistence.jdbc.user" value="root"/>
|
||||
<property name="javax.persistence.jdbc.password" value="*hello9796!"/>-->
|
||||
<property name="javax.persistence.jdbc.password" value="*Zhong123098!"/>
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
|
||||
|
||||
</persistence>
|
||||
|
15
pom.xml
15
pom.xml
@ -13,18 +13,18 @@
|
||||
<dependency>
|
||||
<groupId>org.redkale</groupId>
|
||||
<artifactId>redkale</artifactId>
|
||||
<version>2.0.0.rc3</version>
|
||||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.redkalex</groupId>
|
||||
<artifactId>redkale-plugins</artifactId>
|
||||
<version>2.0.0.rc3</version>
|
||||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.18</version>
|
||||
<version>8.0.27</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -32,6 +32,11 @@
|
||||
<artifactId>enjoy</artifactId>
|
||||
<version>3.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.22</version>
|
||||
</dependency>
|
||||
|
||||
<!-- arangodb支持 -->
|
||||
<!-- arangodb支持 -->
|
||||
@ -55,8 +60,8 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>11</source>
|
||||
<target>11</target>
|
||||
<source>17</source>
|
||||
<target>17</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.base.bean;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.source.FilterBean;
|
||||
|
||||
@ -9,6 +11,8 @@ import java.io.Serializable;
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class ActLogBean implements Serializable, FilterBean {
|
||||
|
||||
@Column(comment = "[日志id]")
|
||||
@ -32,62 +36,6 @@ public class ActLogBean implements Serializable, FilterBean {
|
||||
@Column(comment = "[状态]-1删除 1正常")
|
||||
private int status = 1;
|
||||
|
||||
public void setLogid(int logid) {
|
||||
this.logid = logid;
|
||||
}
|
||||
|
||||
public int getLogid() {
|
||||
return this.logid;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public int getCate() {
|
||||
return this.cate;
|
||||
}
|
||||
|
||||
public void setTid(int tid) {
|
||||
this.tid = tid;
|
||||
}
|
||||
|
||||
public int getTid() {
|
||||
return this.tid;
|
||||
}
|
||||
|
||||
public void setUserId(int userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public int getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setCreateTime(long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public long getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,12 +1,19 @@
|
||||
package net.tccn.bbs.base.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Cacheable(interval = 5 * 60)
|
||||
@Table(catalog = "redbbs", name = "sys_actlog")
|
||||
public class ActLog implements java.io.Serializable {
|
||||
@ -33,62 +40,6 @@ public class ActLog implements java.io.Serializable {
|
||||
@Column(comment = "[状态]-1删除 1正常")
|
||||
private short status = 10;
|
||||
|
||||
public void setLogid(int logid) {
|
||||
this.logid = logid;
|
||||
}
|
||||
|
||||
public int getLogid() {
|
||||
return this.logid;
|
||||
}
|
||||
|
||||
public void setCate(short cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public short getCate() {
|
||||
return this.cate;
|
||||
}
|
||||
|
||||
public void setTid(int tid) {
|
||||
this.tid = tid;
|
||||
}
|
||||
|
||||
public int getTid() {
|
||||
return this.tid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public void setCreatetime(long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public long getCreatetime() {
|
||||
return this.createtime;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setStatus(short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,32 +1,21 @@
|
||||
package net.tccn.bbs.base.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 用来计数用
|
||||
*
|
||||
* @author: liangxianyou at 2018/11/18 20:42.
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class Count {
|
||||
private String name;
|
||||
private long total;
|
||||
|
||||
//-------------------
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public long getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(long total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Count{" +
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.base.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import javax.persistence.Cacheable;
|
||||
@ -10,6 +12,8 @@ import javax.persistence.Table;
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Cacheable(interval = 5 * 60)
|
||||
@Table(catalog = "redbbs", name = "sys_dynattr", comment = "[动态属性表]")
|
||||
public class DynAttr implements java.io.Serializable {
|
||||
@ -27,38 +31,6 @@ public class DynAttr implements java.io.Serializable {
|
||||
@Column(comment = "[属性值]")
|
||||
private String value = "";
|
||||
|
||||
public void setTid(int tid) {
|
||||
this.tid = tid;
|
||||
}
|
||||
|
||||
public int getTid() {
|
||||
return this.tid;
|
||||
}
|
||||
|
||||
public void setCate(short cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public short getCate() {
|
||||
return this.cate;
|
||||
}
|
||||
|
||||
public void setAttr(String attr) {
|
||||
this.attr = attr;
|
||||
}
|
||||
|
||||
public String getAttr() {
|
||||
return this.attr;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.base.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import java.util.Map;
|
||||
@ -9,6 +11,8 @@ import java.util.Map;
|
||||
*
|
||||
* @author: liangxianyou at 2018/11/18 8:47.
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class VisLog {
|
||||
private String ip;
|
||||
private int userid;
|
||||
@ -18,62 +22,6 @@ public class VisLog {
|
||||
private Map para;
|
||||
private Map headers;
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public String getFtime() {
|
||||
return ftime;
|
||||
}
|
||||
|
||||
public void setFtime(String ftime) {
|
||||
this.ftime = ftime;
|
||||
}
|
||||
|
||||
public String getUri() {
|
||||
return uri;
|
||||
}
|
||||
|
||||
public void setUri(String uri) {
|
||||
this.uri = uri;
|
||||
}
|
||||
|
||||
public long getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(long time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public Map getPara() {
|
||||
return para;
|
||||
}
|
||||
|
||||
public void setPara(Map para) {
|
||||
this.para = para;
|
||||
}
|
||||
|
||||
public Map getHeaders() {
|
||||
return headers;
|
||||
}
|
||||
|
||||
public void setHeaders(Map headers) {
|
||||
this.headers = headers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.base.user;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.net.http.RestSessionid;
|
||||
import org.redkale.source.FilterBean;
|
||||
import org.redkale.util.Comment;
|
||||
@ -9,6 +11,8 @@ import javax.persistence.Transient;
|
||||
/**
|
||||
* Created by Lxy at 2017/10/1 10:40.
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class LoginBean implements FilterBean {
|
||||
private String username;
|
||||
private String password;
|
||||
@ -18,30 +22,6 @@ public class LoginBean implements FilterBean {
|
||||
@RestSessionid(create = true)
|
||||
private String sessionid = "";
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return UserRecord.md5IfNeed(password);
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getSessionid() {
|
||||
return sessionid;
|
||||
}
|
||||
|
||||
public void setSessionid(String sessionid) {
|
||||
this.sessionid = sessionid;
|
||||
}
|
||||
|
||||
public boolean emptyUsername() {
|
||||
return username == null || username.isEmpty();
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.base.user;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.source.FilterBean;
|
||||
|
||||
import javax.persistence.Column;
|
||||
@ -7,6 +9,8 @@ import javax.persistence.Column;
|
||||
/**
|
||||
* Created by Lxy at 2017/10/10 8:30.
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class UserBean implements FilterBean {
|
||||
|
||||
|
||||
@ -25,43 +29,4 @@ public class UserBean implements FilterBean {
|
||||
@Column(length = 32, comment = "[邮箱]")
|
||||
private String email;
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getNickname() {
|
||||
return nickname;
|
||||
}
|
||||
|
||||
public void setNickname(String nickname) {
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
public String getRealname() {
|
||||
return realname;
|
||||
}
|
||||
|
||||
public void setRealname(String realname) {
|
||||
this.realname = realname;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package net.tccn.bbs.base.user;
|
||||
|
||||
import org.redkale.convert.ConvertColumn;
|
||||
import org.redkale.convert.ConvertType;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import javax.persistence.Column;
|
||||
@ -10,6 +10,8 @@ import javax.persistence.Id;
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class UserInfo implements java.io.Serializable {
|
||||
|
||||
@Id
|
||||
@ -33,143 +35,6 @@ public class UserInfo implements java.io.Serializable {
|
||||
private int status = 1;
|
||||
private String time = "";
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return this.username;
|
||||
}
|
||||
|
||||
public int getSex() {
|
||||
return sex;
|
||||
}
|
||||
|
||||
public void setSex(int sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
@ConvertColumn(ignore = true, type = ConvertType.JSON)
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return this.phone;
|
||||
}
|
||||
|
||||
public void setNickname(String nickname) {
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
public String getNickname() {
|
||||
return this.nickname;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return this.avatar;
|
||||
}
|
||||
|
||||
public void setRelaname(String relaname) {
|
||||
this.relaname = relaname;
|
||||
}
|
||||
|
||||
public String getRelaname() {
|
||||
return this.relaname;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return this.email == null || this.email.isEmpty() ? "" : this.email;
|
||||
}
|
||||
|
||||
public int getRoleid() {
|
||||
return roleid;
|
||||
}
|
||||
|
||||
public void setRoleid(int roleid) {
|
||||
this.roleid = roleid;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getGit() {
|
||||
return git;
|
||||
}
|
||||
|
||||
public void setGit(String git) {
|
||||
this.git = git;
|
||||
}
|
||||
|
||||
public void setCreatetime(long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public long getCreatetime() {
|
||||
return this.createtime;
|
||||
}
|
||||
|
||||
public String getSign() {
|
||||
return sign;
|
||||
}
|
||||
|
||||
public void setSign(String sign) {
|
||||
this.sign = sign;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(String time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.base.user;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.util.Utility;
|
||||
|
||||
@ -11,6 +13,8 @@ import javax.persistence.Table;
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Cacheable(interval = 5 * 60)
|
||||
@Table(catalog = "redbbs", name = "sys_userrecord")
|
||||
public class UserRecord implements java.io.Serializable {
|
||||
@ -64,134 +68,6 @@ public class UserRecord implements java.io.Serializable {
|
||||
@Column(comment = "[状态]-10删除 10正常")
|
||||
private short status = 10;
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return this.username;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return this.password;
|
||||
}
|
||||
|
||||
public void setSex(short sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public short getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return this.phone;
|
||||
}
|
||||
|
||||
public void setNickname(String nickname) {
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
public String getNickname() {
|
||||
return this.nickname;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return this.avatar;
|
||||
}
|
||||
|
||||
public void setRealname(String realname) {
|
||||
this.realname = realname;
|
||||
}
|
||||
|
||||
public String getRealname() {
|
||||
return this.realname;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return this.email;
|
||||
}
|
||||
|
||||
public void setRoleid(int roleid) {
|
||||
this.roleid = roleid;
|
||||
}
|
||||
|
||||
public int getRoleid() {
|
||||
return this.roleid;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return this.site;
|
||||
}
|
||||
|
||||
public void setGit(String git) {
|
||||
this.git = git;
|
||||
}
|
||||
|
||||
public String getGit() {
|
||||
return this.git;
|
||||
}
|
||||
|
||||
public void setCreatetime(long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public long getCreatetime() {
|
||||
return this.createtime;
|
||||
}
|
||||
|
||||
public void setSign(String sign) {
|
||||
this.sign = sign;
|
||||
}
|
||||
|
||||
public String getSign() {
|
||||
return this.sign;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return this.city;
|
||||
}
|
||||
|
||||
public void setStatus(short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,15 +1,22 @@
|
||||
package net.tccn.bbs.comment;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.tccn.bbs.base.iface.C;
|
||||
import net.tccn.bbs.base.kit.LxyKit;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Cacheable(interval = 5 * 60)
|
||||
@Table(catalog = "redbbs", name = "sys_comment", comment = "[评论表]")
|
||||
public class Comment implements Serializable, C<CommentInfo> {
|
||||
@ -42,78 +49,6 @@ public class Comment implements Serializable, C<CommentInfo> {
|
||||
@Column(comment = "[状态]1正常,-1删除")
|
||||
private short status = 10;
|
||||
|
||||
public void setCommentid(int commentid) {
|
||||
this.commentid = commentid;
|
||||
}
|
||||
|
||||
public int getCommentid() {
|
||||
return this.commentid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public void setPid(int pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public int getPid() {
|
||||
return this.pid;
|
||||
}
|
||||
|
||||
public void setCate(short cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public short getCate() {
|
||||
return this.cate;
|
||||
}
|
||||
|
||||
public void setContentid(int contentid) {
|
||||
this.contentid = contentid;
|
||||
}
|
||||
|
||||
public int getContentid() {
|
||||
return this.contentid;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setCreatetime(long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public long getCreatetime() {
|
||||
return this.createtime;
|
||||
}
|
||||
|
||||
public void setSupportnum(int supportnum) {
|
||||
this.supportnum = supportnum;
|
||||
}
|
||||
|
||||
public int getSupportnum() {
|
||||
return this.supportnum;
|
||||
}
|
||||
|
||||
public void setStatus(short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.comment;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.tccn.bbs.base.iface.CI;
|
||||
import net.tccn.bbs.base.iface.UI;
|
||||
import net.tccn.bbs.base.user.UserRecord;
|
||||
@ -11,6 +13,8 @@ import java.io.Serializable;
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class CommentInfo implements UI<CommentInfo>, Serializable, CI<CommentInfo> {
|
||||
|
||||
@Column(comment = "[评论id]")
|
||||
@ -45,102 +49,6 @@ public class CommentInfo implements UI<CommentInfo>, Serializable, CI<CommentInf
|
||||
private String title;
|
||||
private int hadsupport = -1;
|
||||
|
||||
public void setCommentid(int commentid) {
|
||||
this.commentid = commentid;
|
||||
}
|
||||
|
||||
public int getCommentid() {
|
||||
return this.commentid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public int getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(int pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public int getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public void setContentid(int contentid) {
|
||||
this.contentid = contentid;
|
||||
}
|
||||
|
||||
public int getContentid() {
|
||||
return this.contentid;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public int getSupportnum() {
|
||||
return supportnum;
|
||||
}
|
||||
|
||||
public void setSupportnum(int supportnum) {
|
||||
this.supportnum = supportnum;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public String getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
public void setCreatetime(String createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public CommentInfo getpCommentInfo() {
|
||||
return pCommentInfo;
|
||||
}
|
||||
|
||||
public void setpCommentInfo(CommentInfo pCommentInfo) {
|
||||
this.pCommentInfo = pCommentInfo;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public int getHadsupport() {
|
||||
return hadsupport;
|
||||
}
|
||||
|
||||
public void setHadsupport(int hadsupport) {
|
||||
this.hadsupport = hadsupport;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,16 +1,23 @@
|
||||
package net.tccn.bbs.content;
|
||||
|
||||
import com.jfinal.kit.Kv;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.tccn.bbs.base.iface.C;
|
||||
import net.tccn.bbs.base.kit.LxyKit;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Cacheable(interval = 5 * 60)
|
||||
@Table(catalog = "redbbs", name = "sys_content", comment = "[内容表]")
|
||||
public class Content implements Serializable, C<ContentInfo> {
|
||||
@ -58,118 +65,6 @@ public class Content implements Serializable, C<ContentInfo> {
|
||||
@Column(comment = "[状态] -10删除 10未结帖 20结帖 30私密")
|
||||
private short status = 10;
|
||||
|
||||
public void setContentid(int contentid) {
|
||||
this.contentid = contentid;
|
||||
}
|
||||
|
||||
public int getContentid() {
|
||||
return this.contentid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public void setDigest(String digest) {
|
||||
this.digest = digest;
|
||||
}
|
||||
|
||||
public String getDigest() {
|
||||
return this.digest;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setCreatetime(long createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public long getCreatetime() {
|
||||
return this.createtime;
|
||||
}
|
||||
|
||||
public void setCate(short cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public short getCate() {
|
||||
return this.cate;
|
||||
}
|
||||
|
||||
public void setType(short type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public short getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setReplynum(int replynum) {
|
||||
this.replynum = replynum;
|
||||
}
|
||||
|
||||
public int getReplynum() {
|
||||
return this.replynum;
|
||||
}
|
||||
|
||||
public void setViewnum(int viewnum) {
|
||||
this.viewnum = viewnum;
|
||||
}
|
||||
|
||||
public int getViewnum() {
|
||||
return this.viewnum;
|
||||
}
|
||||
|
||||
public void setWonderful(short wonderful) {
|
||||
this.wonderful = wonderful;
|
||||
}
|
||||
|
||||
public short getWonderful() {
|
||||
return this.wonderful;
|
||||
}
|
||||
|
||||
public void setTop(short top) {
|
||||
this.top = top;
|
||||
}
|
||||
|
||||
public short getTop() {
|
||||
return this.top;
|
||||
}
|
||||
|
||||
public void setSolved(short solved) {
|
||||
this.solved = solved;
|
||||
}
|
||||
|
||||
public short getSolved() {
|
||||
return this.solved;
|
||||
}
|
||||
|
||||
public void setStatus(short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public short getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.content;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.source.FilterBean;
|
||||
|
||||
@ -10,6 +12,8 @@ import javax.persistence.Table;
|
||||
/**
|
||||
* @author lxyer
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(catalog = "db_redbbs", name = "content", comment = "[内容表]")
|
||||
public class ContentBean implements FilterBean, java.io.Serializable {
|
||||
|
||||
@ -44,98 +48,6 @@ public class ContentBean implements FilterBean, java.io.Serializable {
|
||||
@Column(comment = "[阅读量]")
|
||||
private int viewnum;
|
||||
|
||||
/* @Column(comment = "[精] 0否,1是")
|
||||
private int wonderful;
|
||||
|
||||
@Column(comment = "[置顶] 0否,1是")
|
||||
private int top;
|
||||
|
||||
@Column(comment = "[结帖]大于0结帖")
|
||||
private int solved;
|
||||
|
||||
@Column(comment = "[状态]")
|
||||
private int status = 1;*/
|
||||
|
||||
public void setContentid(int contentid) {
|
||||
this.contentid = contentid;
|
||||
}
|
||||
|
||||
public int getContentid() {
|
||||
return this.contentid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return this.userid;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public void setDigest(String digest) {
|
||||
this.digest = digest;
|
||||
}
|
||||
|
||||
public String getDigest() {
|
||||
return this.digest;
|
||||
}
|
||||
|
||||
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 int getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public int getReplynum() {
|
||||
return replynum;
|
||||
}
|
||||
|
||||
public void setReplynum(int replynum) {
|
||||
this.replynum = replynum;
|
||||
}
|
||||
|
||||
public int getViewnum() {
|
||||
return viewnum;
|
||||
}
|
||||
|
||||
public void setViewnum(int viewnum) {
|
||||
this.viewnum = viewnum;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return JsonConvert.root().convertTo(this);
|
||||
|
@ -1,5 +1,7 @@
|
||||
package net.tccn.bbs.content;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.tccn.bbs.base.iface.CI;
|
||||
import net.tccn.bbs.base.iface.UI;
|
||||
import net.tccn.bbs.base.user.UserRecord;
|
||||
@ -10,6 +12,8 @@ import java.io.Serializable;
|
||||
/**
|
||||
* Created by Lxy at 2017/11/26 20:52.
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class ContentInfo implements UI<ContentInfo>, Serializable, CI {
|
||||
|
||||
private int contentid;
|
||||
@ -29,136 +33,6 @@ public class ContentInfo implements UI<ContentInfo>, Serializable, CI {
|
||||
|
||||
private String typename;
|
||||
private int hadcollect = -1;
|
||||
|
||||
public int getContentid() {
|
||||
return contentid;
|
||||
}
|
||||
|
||||
public void setContentid(int contentid) {
|
||||
this.contentid = contentid;
|
||||
}
|
||||
|
||||
public int getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
public void setUserid(int userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getDigest() {
|
||||
return digest;
|
||||
}
|
||||
|
||||
public void setDigest(String digest) {
|
||||
this.digest = digest;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public int getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getReplynum() {
|
||||
return replynum;
|
||||
}
|
||||
|
||||
public void setReplynum(int replynum) {
|
||||
this.replynum = replynum;
|
||||
}
|
||||
|
||||
public int getViewnum() {
|
||||
return viewnum;
|
||||
}
|
||||
|
||||
public void setViewnum(int viewnum) {
|
||||
this.viewnum = viewnum;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getWonderful() {
|
||||
return wonderful;
|
||||
}
|
||||
|
||||
public void setWonderful(int wonderful) {
|
||||
this.wonderful = wonderful;
|
||||
}
|
||||
|
||||
public int getTop() {
|
||||
return top;
|
||||
}
|
||||
|
||||
public void setTop(int top) {
|
||||
this.top = top;
|
||||
}
|
||||
|
||||
public int getSolved() {
|
||||
return solved;
|
||||
}
|
||||
|
||||
public void setSolved(int solved) {
|
||||
this.solved = solved;
|
||||
}
|
||||
|
||||
public String getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
public void setCreatetime(String createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
public String getTypename() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setTypename(String typename) {
|
||||
this.typename = typename;
|
||||
}
|
||||
|
||||
public int getHadcollect() {
|
||||
return hadcollect;
|
||||
}
|
||||
|
||||
public void setHadcollect(int hadcollect) {
|
||||
this.hadcollect = hadcollect;
|
||||
}
|
||||
|
||||
|
||||
//-----------
|
||||
private UserRecord user;
|
||||
|
||||
|
@ -98,10 +98,10 @@ public class ChatWebSocket extends WebSocket {
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@RestOnMessage(name = "close")
|
||||
|
||||
/*@RestOnMessage(name = "close")
|
||||
public void onClose(int code, String reason) {
|
||||
System.out.println("close!");
|
||||
super.onClose(code, reason);
|
||||
}
|
||||
}*/
|
||||
}
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user