Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AppID 应用ID AppID = `console` // AppDefaultLoggerName 应用默认日志名称 AppDefaultLoggerName = `console` // AuthorizationHeaderKey 授权头 AuthorizationHeaderKey = "authorization" // AuthorizationTypeBearer 授权类型 AuthorizationTypeBearer = "Bearer" // AccountLevelPlatform 超级管理员 权限级别 0默认平台超级管理员;1000商家管理员;10000商家员工 AccountLevelPlatform = 0 // AccountLevelBusiness 商家管理员 AccountLevelBusiness = 1000 // AccountLevelBusinessEmployee 商家员工 AccountLevelBusinessEmployee = 10000 // UserStateDefault 用户状态 0默认,100正常,200失效 UserStateDefault = 0 // UserStateNormal 正常 UserStateNormal = 100 // UserStateInvalid 失效 UserStateInvalid = 200 // AuthSecretStateDefault 授权密钥状态 0 默认 100正常 200禁用 AuthSecretStateDefault = 0 // AuthSecretStateNormal 正常 AuthSecretStateNormal = 100 // AuthSecretStateInvalid 失效 AuthSecretStateInvalid = 200 // AuthTypeAPIKey 授权类型 ApiKey授权类型 账户密码授权类型 AuthTypeAPIKey = "api_key" // AuthTypePassword 授权类型 账户密码授权类型 AuthTypePassword = "password" // APIKeyExpireTime ApiKey授权有效期时间 单位秒 APIKeyExpireTime = 7200 // PasswordExpireTime 账号密码授权有效期时间 单位秒 PasswordExpireTime = 7200 // AccessTokenExpireTime 访问令牌有效期时间 单位秒 AccessTokenExpireTime = 7200 // RefreshTokenExpireTime 刷新令牌有效期时间 单位秒 RefreshTokenExpireTime = 864000 // TokenExpireTime 有效期时间 单位秒 TokenExpireTime = 864000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.