package
Version:
v0.0.0-...-87aebb1
Opens a new window with list of versions in this module.
Published: Feb 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
SUCCESS = "success"
SessionDFTVER = "1.0.0"
SessionAge = 60 * 24 * 60 * 60
SessionKey = "session_key"
SessionInfo = "session_info"
Week = 60 * 60 * 24 * 7
)
View Source
var (
Success = New(0, "success")
ParaErr = New(1, "参数错误或缺少对应参数")
DBErr = New(2, "数据库错误,请重试或并联系管理员")
SerErr = New(3, "服务错误,请联系管理员")
SessionErr = New(4, "请先登录")
PermissionErr = New(5, "Permission denied")
)
type Response struct {
Code int32 `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.