Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArticleStatus = map[int]string{
-1: "error",
0: "published",
1: "draft",
2: "deleted",
}
View Source
var Deleted = map[int]string{
0: "正常",
1: "已删除",
}
Deleted 逻辑删除状态
View Source
var Status = map[int]string{
0: "禁用",
1: "正常",
}
Status 启用/禁用状态
View Source
var UserType = map[int]string{
1: "管理员",
2: "测试用户",
}
UserType 用户类型
Functions ¶
func GetArticleStatus ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.