gitee 用户数据 用户使用gitee登录的时候,直接根据gitee的id获取数据
| 25 | //gitee 用户数据 |
| 26 | //用户使用gitee登录的时候,直接根据gitee的id获取数据 |
| 27 | type GiteeUser struct { |
| 28 | Id int `json:"id"` //用户id |
| 29 | MemberId int `json:"member_id"` //绑定的用户id |
| 30 | UpdatedAt time.Time `json:"updated_at"` //用户资料更新时间 |
| 31 | AvatarURL string `json:"avatar_url" orm:"column(avatar_url)"` //用户头像链接 |
| 32 | Email string `json:"email" orm:"size(50)"` //电子邮箱 |
| 33 | Login string `json:"login" orm:"size(50)"` //用户名 |
| 34 | Name string `json:"name" orm:"size(50)"` //昵称 |
| 35 | HtmlURL string `json:"html_url" orm:"column(html_url)"` //gitee主页 |
| 36 | } |
| 37 | |
| 38 | //获取accessToken |
| 39 | func GetGiteeAccessToken(code string) (token GiteeAccessToken, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected