wiki目录预先加载

This commit is contained in:
暮光:城中城
2019-03-11 23:22:57 +08:00
parent 90ce37ec35
commit 7bf66f3916
10 changed files with 134 additions and 50 deletions

View File

@@ -11,7 +11,7 @@ import java.io.Serializable;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-09
* @since 2019-03-11
*/
public class WikiSpace implements Serializable {
@@ -43,6 +43,11 @@ public class WikiSpace implements Serializable {
*/
private Integer editType;
/**
* 目录延迟加载 0=否 1=是
*/
private Integer treeLazyLoad;
/**
* 创建人ID
*/
@@ -98,6 +103,13 @@ public class WikiSpace implements Serializable {
public void setEditType(Integer editType) {
this.editType = editType;
}
public Integer getTreeLazyLoad() {
return treeLazyLoad;
}
public void setTreeLazyLoad(Integer treeLazyLoad) {
this.treeLazyLoad = treeLazyLoad;
}
public Long getCreateUserId() {
return createUserId;
}
@@ -135,6 +147,7 @@ public class WikiSpace implements Serializable {
", type=" + type +
", spaceExplain=" + spaceExplain +
", editType=" + editType +
", treeLazyLoad=" + treeLazyLoad +
", createUserId=" + createUserId +
", createUserName=" + createUserName +
", createTime=" + createTime +

View File

@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author 暮光:城中城
* @since 2019-03-09
* @since 2019-03-11
*/
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", "wiki_page" };
final String[] tableName = { "wiki_space" };
// 代码生成器
AutoGenerator mpg = new AutoGenerator();

View File

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

View File

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