constants

package
v0.0.0-...-5b4efa0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthHeader = "Authorization"
	TokenTTL   = time.Duration(time.Second * 7 * 24 * 60 * 60)

	RoleUser  = 1
	RoleAdmin = 2

	AccountUnlocked = 0
	AccountLocked   = 1

	SocialIsHome  = 1
	SocialEnabled = 1

	TreePath = "."

	ConfigTypeBase      = 0
	ConfigTypeQiniu     = 1
	ConfigTypeMusicId   = 2
	ConfigTypeStoreType = 3
	ConfigTypeAliyun    = 4
	ConfigTypeCross     = 5
	ConfigTypeDefault   = 6

	DefaultPathKey     = "default_path"
	DefaultPathValue   = "~/file"
	DefaultImageDomain = "default_image_domain"
	FileURL            = "/files/"

	StoreType   = "store_type"
	DefaultType = "default"
	AliyunOss   = "aliyun_oss"
	QiNiu       = "qiniu"
	COS         = "cos"
)
View Source
const (
	PostsDefault = "000"
	PostsList    = "001"
	PostsDetail  = "002"
)

Variables

View Source
var OperationNames = map[string]string{
	PostsDefault: "默认类型",
	PostsList:    "查询文章列表",
	PostsDetail:  "查询文章详情",
}
View Source
var (
	Roles = map[int64]string{RoleUser: "user", RoleAdmin: "admin"}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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