当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
18 Star 97 Fork 15

chunshand / d3auth
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
type.go 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
chunshand 提交于 2018-12-18 08:46 . 增加码云登录
package d3auth
// "encoding/json"
//基本配置
type Auth_conf struct {
Appid string
Appkey string
Rurl string
}
//@ qq 结构 ------------------------------------------------- start
type Auth_qq struct {
Conf *Auth_conf
}
type Auth_qq_err_res struct {
Error int `json:"error"`
Error_description string `json:"error_description"`
}
type Auth_qq_me struct {
Client_ID string `json:"client_id"`
OpenID string `json:"openid"`
}
//@ qq 结构 ------------------------------------------------- end
//@ weibo 结构 ------------------------------------------------- start
type Auth_wb struct {
Conf *Auth_conf
}
type Auth_wb_err_res struct {
Error int `json:"error_code"`
Error_description string `json:"error"`
}
type Auth_wb_succ_res struct {
Access_Token string `json:"access_token"`
Openid string `json:"uid"`
}
//@ weibo 结构 ------------------------------------------------- end
//@ weixin 结构 ------------------------------------------------- start
type Auth_wx struct {
Conf *Auth_conf
}
type Auth_wx_err_res struct {
Error int `json:"errcode"`
Error_description string `json:"errmsg"`
}
type Auth_wx_succ_res struct {
Access_Token string `json:"access_token"`
Openid string `json:"openid"`
}
//@ weixin 结构 ------------------------------------------------- end
//@ github 结构 ------------------------------------------------- start
type Auth_github struct {
Conf *Auth_conf
}
type Auth_github_err_res struct {
Error int `json:"errcode"`
Error_description string `json:"errmsg"`
}
type Auth_github_succ_res struct {
Access_Token string `json:"access_token"`
Openid string `json:"openid"`
}
//@ github 结构 ------------------------------------------------- end
//@ gitee 结构 ------------------------------------------------- start
type Auth_gitee struct {
Conf *Auth_conf
}
type Auth_gitee_err_res struct {
Error int `json:"errcode"`
Error_description string `json:"errmsg"`
}
type Auth_gitee_succ_res struct {
Access_Token string `json:"access_token"`
}
//@ gitee 结构 ------------------------------------------------- end
Go
1
https://gitee.com/chunshand/d3auth.git
git@gitee.com:chunshand/d3auth.git
chunshand
d3auth
d3auth
master

搜索帮助