Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct {
// Code 指定了业务错误码.
Code int `json:"code"`
// Message 包含了可以直接对外展示的错误信息.
Message string `json:"message"`
// Content 包含了可以直接对外展示的数据信息
Content interface{} `json:"content"`
}
Response 定义了发生错误时的返回消息.
type TokenResponse ¶
type TokenResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
}
TokenResponse JWT Token 响应结构
Click to show internal directories.
Click to hide internal directories.