Documentation
¶
Index ¶
Constants ¶
View Source
const ( MSG_OK = 0 // 成功 MSG_ERR = -1 // 错误 MSG_REDIRECT = -2 // 重定向 MSG_AUTH = -3 // 登录认证 )
View Source
const (
PageSize = 15
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWToken ¶
type JWToken struct {
SignString string
}
JWToken jwt token
func (*JWToken) GenJWToken ¶
GenJWToken 生成一个jwt token
type Response ¶
type Response struct { Code int `json:"code"` // return code, 0 for succ Msg string `json:"msg"` // message Data interface{} `json:"data"` // data object }
Response represents HTTP response body.
func NewResponse ¶
func NewResponse() *Response
NewResponse creates a result with Code=0, Msg="", Data=nil.
Click to show internal directories.
Click to hide internal directories.