Documentation ¶
Index ¶
- type Handles
- func (h *Handles) CheckAccessToken(g *gin.Context)
- func (h *Handles) CreateCodeOpenId(g *gin.Context)
- func (h *Handles) CreateToken(g *gin.Context)
- func (h *Handles) GetUid(g *gin.Context) int
- func (h *Handles) RefreshAccessToken(g *gin.Context)
- func (h *Handles) ResponseData(g *gin.Context, data interface{})
- func (h *Handles) ResponseErr(g *gin.Context, err error)
- func (h *Handles) ResponseSuccess(g *gin.Context)
- func (h *Handles) UserInfo(g *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handles ¶
type Handles struct {
// contains filtered or unexported fields
}
func (*Handles) CheckAccessToken ¶
func (*Handles) CreateCodeOpenId ¶
func (*Handles) CreateToken ¶
CreateToken appid 是 唯一标识 secret 是 secret code 是 填写第一步获取的code参数 grant_type 是 填写为authorization_code
func (*Handles) RefreshAccessToken ¶
RefreshAccessToken appid 是 唯一标识 grant_type 是 填写为 refresh_token refresh_token 是 填写通过access_token获取到的refresh_token参数
func (*Handles) ResponseData ¶
func (*Handles) ResponseSuccess ¶
Click to show internal directories.
Click to hide internal directories.