-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
19f24b7
commit b97b388
Showing
21 changed files
with
81 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
src/interfaces/biz.interface.ts → src/constants/biz.constant.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
/** | ||
* @file Business constants & interfaces | ||
* @module interface/biz | ||
* @module constants/biz | ||
* @author Surmon <https://github.com/surmon-china> | ||
*/ | ||
|
||
// 排序 | ||
// https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes | ||
// language | ||
export enum Language { | ||
English = 'en', // English | ||
Chinese = 'zh', // 简体中文 | ||
} | ||
|
||
// sort | ||
export enum SortType { | ||
Asc = 1, // 升序 | ||
Desc = -1, // 降序 | ||
Hottest = 2, // 热序 | ||
} | ||
|
||
// 发布状态 | ||
// publish state | ||
export enum PublishState { | ||
Draft = 0, // 草稿 | ||
Published = 1, // 已发布 | ||
Recycle = -1, // 回收站 | ||
} | ||
|
||
// 公开状态 | ||
// public state | ||
export enum PublicState { | ||
Public = 1, // 公开 | ||
Secret = -1, // 私密 | ||
Reserve = 0, // 保留(限制) | ||
} | ||
|
||
// 转载状态 | ||
// origin state | ||
export enum OriginState { | ||
Original = 0, // 原创 | ||
Reprint = 1, // 转载 | ||
Hybrid = 2, // 混合 | ||
} | ||
|
||
// 评论状态 | ||
// comment state | ||
export enum CommentState { | ||
Auditing = 0, // 待审核 | ||
Published = 1, // 通过正常 | ||
Deleted = -1, // 已删除 | ||
Spam = -2, // 垃圾评论 | ||
} | ||
|
||
// 评论宿主页面的 POST_ID 类型 | ||
export enum CommentPostID { | ||
Guestbook = 0, // 留言板 | ||
} | ||
|
||
// 评论本身的类型 | ||
export enum CommentParentID { | ||
Self = 0, // 自身一级评论 | ||
} | ||
export const GUESTBOOK_POST_ID = 0 | ||
export const ROOT_COMMENT_PID = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters