- export auth2.GetTokenInfo

This commit is contained in:
gazebo
2019-03-11 14:50:25 +08:00
parent 7bcf5f228a
commit 4455e51b3f
3 changed files with 22 additions and 2 deletions

View File

@@ -73,6 +73,19 @@ func (c *Auth2Controller) Login() {
})
}
// @Title 钉钉认证回调接口
// @Description 钉钉认证回调接口,自己不能直接调用
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetTokenInfo [get]
func (c *Auth2Controller) GetTokenInfo() {
c.callGetTokenInfo(func(params *tAuth2GetTokenInfoParams) (retVal interface{}, errCode string, err error) {
retVal, err = auth2.GetTokenInfo(params.Token)
return retVal, "", err
})
}
// @Title 微信认证回调接口
// @Description 微信认证回调接口,自己不能直接调用
// @Param code query string true "客户同意后得到的code"