注释完善

This commit is contained in:
暮光:城中城
2021-11-24 23:28:49 +08:00
parent aae8a9994a
commit 4408525b45
144 changed files with 923 additions and 854 deletions

View File

@@ -1,5 +1,11 @@
package com.zyplayer.doc.wiki.controller.vo;
/**
* 用户页面权限信息
*
* @author 暮光:城中城
* @since 2019-06-05
*/
public class UserPageAuthVo {
private String userName;
private Long userId;

View File

@@ -1,5 +1,11 @@
package com.zyplayer.doc.wiki.controller.vo;
/**
* 用户空间权限信息
*
* @author 暮光:城中城
* @since 2021-02-09
*/
public class UserSpaceAuthVo {
private Long groupId;
private Integer editPage;

View File

@@ -5,6 +5,8 @@ import com.zyplayer.doc.data.repository.manage.entity.WikiPageComment;
import java.util.List;
/**
* wiki页面评论信息
*
* @author 暮光:城中城
* @since 2019-02-24
*/

View File

@@ -6,6 +6,12 @@ import com.zyplayer.doc.data.repository.manage.entity.WikiPageFile;
import java.util.List;
/**
* wiki页面内容信息
*
* @author 暮光:城中城
* @since 2019-02-28
*/
public class WikiPageContentVo {
private WikiPage wikiPage;
private WikiPageContent pageContent;

View File

@@ -4,6 +4,12 @@ import com.zyplayer.doc.data.repository.manage.entity.WikiPage;
import java.util.List;
/**
* wiki页面信息
*
* @author 暮光:城中城
* @since 2019-03-11
*/
public class WikiPageVo extends WikiPage {
private String path;
private List<WikiPageVo> children;

View File

@@ -2,6 +2,12 @@ package com.zyplayer.doc.wiki.controller.vo;
import com.zyplayer.doc.data.repository.manage.entity.WikiSpace;
/**
* wiki空间信息
*
* @author 暮光:城中城
* @since 2021-02-09
*/
public class WikiSpaceVo extends WikiSpace {
private Integer favorite;

View File

@@ -5,12 +5,18 @@ import org.springframework.context.annotation.Configuration;
import java.lang.annotation.*;
/**
* 开启wiki模块注解
*
* @author 暮光:城中城
* @since 2019-02-17
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Configuration
@ComponentScan(basePackages = {
"com.zyplayer.doc.wiki",
"com.zyplayer.doc.wiki",
})
public @interface EnableDocWiki {
}

View File

@@ -3,6 +3,12 @@ package com.zyplayer.doc.wiki.framework.consts;
import java.util.HashMap;
import java.util.Map;
/**
* 静态类
*
* @author 暮光:城中城
* @since 2019-03-22
*/
public class Const {
//如果有多个相同的charset类型可以使用""代替或者指定统一的文件类型,指定的语句需要放在所有相同的语句的第一个位置
//更多类型可以访问 http://tool.oschina.net/commons

View File

@@ -2,6 +2,12 @@ package com.zyplayer.doc.wiki.framework.consts;
import java.util.Objects;
/**
* 空间类型
*
* @author 暮光:城中城
* @since 2019-06-01
*/
public class SpaceType {
public static final Integer publicSpace = 1;
public static final Integer personalSpace = 2;

View File

@@ -1,5 +1,11 @@
package com.zyplayer.doc.wiki.framework.consts;
/**
* wiki权限类型
*
* @author 暮光:城中城
* @since 2019-06-01
*/
public enum WikiAuthType {
@Deprecated
CREATE_PAGE(1, "WIKI_CREATE_PAGE_"),

View File

@@ -12,6 +12,12 @@ import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Objects;
/**
* wiki页面权限服务
*
* @author 暮光:城中城
* @since 2020-06-16
*/
@Service
public class WikiPageAuthService {
@@ -20,6 +26,7 @@ public class WikiPageAuthService {
/**
* 是否具有编辑权限
*
* @param wikiSpaceSel
* @param editType
* @param pageId
@@ -50,6 +57,7 @@ public class WikiPageAuthService {
/**
* 是否具有权限编辑权限
*
* @param wikiSpaceSel
* @param pageId
* @param currentUserId
@@ -73,6 +81,7 @@ public class WikiPageAuthService {
/**
* 是否具有附件上传权限
*
* @param wikiSpaceSel
* @param pageId
* @param currentUserId
@@ -99,6 +108,7 @@ public class WikiPageAuthService {
/**
* 是否具有附件删除权限
*
* @param wikiSpaceSel
* @param pageId
* @param currentUserId
@@ -125,6 +135,7 @@ public class WikiPageAuthService {
/**
* 是否具有删除权限
*
* @param wikiSpaceSel
* @param editType
* @param pageId