remove Article ABOUT type,classId and add canList attr
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user