空间设置和回收站功能开发
This commit is contained in:
@@ -87,7 +87,7 @@ public class WikiPage implements Serializable {
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 0=有效 1=删除
|
||||
* 0=有效 1=删除 2=永久删除
|
||||
*/
|
||||
private Integer delFlag;
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public class WikiPageServiceImpl extends ServiceImpl<WikiPageMapper, WikiPage> i
|
||||
}
|
||||
|
||||
private void deletePageAndSon(WikiPage wikiPage) {
|
||||
wikiPage.setDelFlag(1);
|
||||
wikiPage.setDelFlag(wikiPage.getDelFlag());
|
||||
this.updateById(wikiPage);
|
||||
|
||||
QueryWrapper<WikiPage> wrapper = new QueryWrapper<>();
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.dromara.zyplayer.data.service.params;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PageDeleteParam {
|
||||
private Long pageId;
|
||||
private Integer delFlag;
|
||||
private Long spaceId;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.dromara.zyplayer.data.service.params;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 回收站列表参数
|
||||
*
|
||||
* @author 暮光:城中城
|
||||
* @since 2023-05-01
|
||||
*/
|
||||
@Data
|
||||
public class PageRecycleListParam implements Serializable {
|
||||
private Long spaceId;
|
||||
private Long pageNum;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.dromara.zyplayer.data.service.params;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RecycleDeletePageParam {
|
||||
private String pageIds;
|
||||
private Long spaceId;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.dromara.zyplayer.data.service.params;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RestorePageParam {
|
||||
private String pageIds;
|
||||
}
|
||||
Reference in New Issue
Block a user