common

package
v0.0.0-...-87aebb1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

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
)

Variables

View Source
var (
	Success       = New(0, "success")
	ParaErr       = New(1, "参数错误或缺少对应参数")
	DBErr         = New(2, "数据库错误,请重试或并联系管理员")
	SerErr        = New(3, "服务错误,请联系管理员")
	SessionErr    = New(4, "请先登录")
	PermissionErr = New(5, "Permission denied")
)

Functions

This section is empty.

Types

type Response

type Response struct {
	Code    int32       `json:"code"`
	Message string      `json:"msg"`
	Data    interface{} `json:"data"`
}

func New

func New(code int32, message string) *Response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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