dao层修改 单元测试
This commit is contained in:
@@ -14,27 +14,21 @@ public class Comment {
|
||||
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 是评论还是留言 0:评论 其他(1):留言
|
||||
*/
|
||||
private Boolean type;
|
||||
private int status;
|
||||
|
||||
private Long authorID;
|
||||
private String pagePath;
|
||||
|
||||
private String content;
|
||||
|
||||
private Long articleID;
|
||||
|
||||
private Date date;
|
||||
|
||||
/**
|
||||
* 回应着ID 默认为顶级回复
|
||||
*/
|
||||
private String responseId = "";
|
||||
private User fromUser;
|
||||
|
||||
private User toUser;
|
||||
/**
|
||||
* 评论的父ID
|
||||
*/
|
||||
private Long pid;
|
||||
|
||||
private boolean delete;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package cn.celess.blog.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@@ -10,6 +11,7 @@ import java.util.Date;
|
||||
* @date : 2019/03/28 14:52
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class User {
|
||||
private Long id;
|
||||
|
||||
@@ -18,12 +20,6 @@ public class User {
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 用户唯一标识码
|
||||
*/
|
||||
@JsonIgnore
|
||||
private String uid;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@@ -46,15 +42,12 @@ public class User {
|
||||
|
||||
private Date recentlyLandedDate;
|
||||
|
||||
/**
|
||||
* 随机码 用户验证邮箱/找回密码
|
||||
* 暂时废弃这一字段
|
||||
*/
|
||||
private String emailVerifyId;
|
||||
|
||||
private String role = "user";
|
||||
|
||||
public User() {
|
||||
}
|
||||
private int status;
|
||||
|
||||
public User(String email, String pwd) {
|
||||
this.email = email;
|
||||
this.pwd = pwd;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user