wiki文档优化,增加不可编辑实现

This commit is contained in:
暮光:城中城
2019-03-09 22:23:30 +08:00
parent 840f6b457b
commit 5ca5feb9e8
15 changed files with 102 additions and 33 deletions

View File

@@ -1,18 +1,17 @@
package com.zyplayer.doc.data.repository.manage.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
*
*
* </p>
*
* @author 暮光:城中城
* @since 2019-03-05
* @since 2019-03-09
*/
public class WikiPage implements Serializable {
@@ -49,6 +48,11 @@ public class WikiPage implements Serializable {
*/
private Integer zanNum;
/**
* 编辑类型 0=可编辑 1=不允许编辑
*/
private Integer editType;
/**
* 创建人ID
*/
@@ -126,6 +130,13 @@ public class WikiPage implements Serializable {
public void setZanNum(Integer zanNum) {
this.zanNum = zanNum;
}
public Integer getEditType() {
return editType;
}
public void setEditType(Integer editType) {
this.editType = editType;
}
public Long getCreateUserId() {
return createUserId;
}
@@ -185,6 +196,7 @@ public class WikiPage implements Serializable {
", parentId=" + parentId +
", nodeType=" + nodeType +
", zanNum=" + zanNum +
", editType=" + editType +
", createUserId=" + createUserId +
", createUserName=" + createUserName +
", createTime=" + createTime +

View File

@@ -11,7 +11,7 @@ import java.io.Serializable;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-08
* @since 2019-03-09
*/
public class WikiSpace implements Serializable {
@@ -38,6 +38,11 @@ public class WikiSpace implements Serializable {
*/
private String spaceExplain;
/**
* 编辑类型 0=可编辑 1=不允许编辑
*/
private Integer editType;
/**
* 创建人ID
*/
@@ -86,6 +91,13 @@ public class WikiSpace implements Serializable {
public void setSpaceExplain(String spaceExplain) {
this.spaceExplain = spaceExplain;
}
public Integer getEditType() {
return editType;
}
public void setEditType(Integer editType) {
this.editType = editType;
}
public Long getCreateUserId() {
return createUserId;
}
@@ -122,6 +134,7 @@ public class WikiSpace implements Serializable {
", name=" + name +
", type=" + type +
", spaceExplain=" + spaceExplain +
", editType=" + editType +
", createUserId=" + createUserId +
", createUserName=" + createUserName +
", createTime=" + createTime +

View File

@@ -11,7 +11,7 @@ import org.apache.ibatis.annotations.Update;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-05
* @since 2019-03-09
*/
public interface WikiPageMapper extends BaseMapper<WikiPage> {

View File

@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-08
* @since 2019-03-09
*/
public interface WikiSpaceMapper extends BaseMapper<WikiSpace> {

View File

@@ -19,7 +19,7 @@ public class CodeGenerator {
final String moduleName = "manage";
// final String[] tableName = { "zyplayer_storage", "auth_info", "user_auth", "user_info" };
// final String[] tableName = { "wiki_space", "wiki_page", "wiki_page_content", "wiki_page_file", "wiki_page_comment", "wiki_page_zan" };
final String[] tableName = { "wiki_space" };
final String[] tableName = { "wiki_space", "wiki_page" };
// 代码生成器
AutoGenerator mpg = new AutoGenerator();

View File

@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-05
* @since 2019-03-09
*/
public interface WikiPageService extends IService<WikiPage> {

View File

@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-08
* @since 2019-03-09
*/
public interface WikiSpaceService extends IService<WikiSpace> {

View File

@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-05
* @since 2019-03-09
*/
@Service
public class WikiPageServiceImpl extends ServiceImpl<WikiPageMapper, WikiPage> implements WikiPageService {

View File

@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-08
* @since 2019-03-09
*/
@Service
public class WikiSpaceServiceImpl extends ServiceImpl<WikiSpaceMapper, WikiSpace> implements WikiSpaceService {