emun

package
v0.0.0-...-c622313 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 0 Imported by: 0

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

func GetArticleStatus(code int) string

func GetDeleted

func GetDeleted(code int) string

GetDeleted 获取删除状态

func GetStatus

func GetStatus(code int) string

GetStatus 获取状态信息

func GetUserType

func GetUserType(code int) string

GetUserType 获取状态信息

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL