同一个页面只能一个人编辑
This commit is contained in:
@@ -49,6 +49,11 @@ public class DocUserDetails {
|
||||
this.authorities = authorities;
|
||||
}
|
||||
|
||||
public DocUserDetails(Long userId, String username) {
|
||||
this.userId = userId;
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public DocUserDetails(Long userId, String username, String password, boolean enabled) {
|
||||
super();
|
||||
this.userId = userId;
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 暮光:城中城
|
||||
@@ -99,6 +99,16 @@ public class WikiPage implements Serializable {
|
||||
*/
|
||||
private Integer seqNo;
|
||||
|
||||
/**
|
||||
* 当前正在编辑的用户ID
|
||||
*/
|
||||
private Integer nowEditUserId;
|
||||
|
||||
/**
|
||||
* 当前正在编辑的用户名
|
||||
*/
|
||||
private Integer nowEditUserName;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -211,7 +221,23 @@ public class WikiPage implements Serializable {
|
||||
public void setSeqNo(Integer seqNo) {
|
||||
this.seqNo = seqNo;
|
||||
}
|
||||
|
||||
|
||||
public Integer getNowEditUserId() {
|
||||
return nowEditUserId;
|
||||
}
|
||||
|
||||
public void setNowEditUserId(Integer nowEditUserId) {
|
||||
this.nowEditUserId = nowEditUserId;
|
||||
}
|
||||
|
||||
public Integer getNowEditUserName() {
|
||||
return nowEditUserName;
|
||||
}
|
||||
|
||||
public void setNowEditUserName(Integer nowEditUserName) {
|
||||
this.nowEditUserName = nowEditUserName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "WikiPage{" +
|
||||
|
||||
Reference in New Issue
Block a user