remove Article ABOUT type,classId and add canList attr

This commit is contained in:
Timi
2025-07-22 14:16:24 +08:00
parent 2de29cb3a8
commit 53230943e8
2 changed files with 23 additions and 35 deletions

View File

@@ -25,9 +25,6 @@ public class Article extends Entity implements CommentSupport, Destroyable {
*/
public enum Type {
/** 关于 */
ABOUT,
/** 公版 */
PUBLIC,
@@ -44,9 +41,6 @@ public class Article extends Entity implements CommentSupport, Destroyable {
/** 类型 */
protected Type type;
/** 分类 ID */
protected long classId;
/** 摘要 */
protected String digest;
@@ -62,7 +56,7 @@ public class Article extends Entity implements CommentSupport, Destroyable {
/** 喜欢数量 */
protected int likes;
/** 是否显示评论 */
/** true 为显示评论 */
protected boolean showComment;
/** true 为可评论 */
@@ -71,6 +65,9 @@ public class Article extends Entity implements CommentSupport, Destroyable {
/** true 为可排位 */
protected boolean canRanking;
/** true 为可通过列表查询 */
protected boolean canList;
/** @return true 为可评论 */
@Override
public boolean canComment() {