✨ init project
This commit is contained in:
22
model/resp/login.go
Normal file
22
model/resp/login.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package resp
|
||||
|
||||
// Code2Session 用户登录凭证校验模型
|
||||
type Code2Session struct {
|
||||
Code string
|
||||
AppId string
|
||||
AppSecret string
|
||||
}
|
||||
|
||||
// Code2SessionResult 凭证校验后返回的JSON数据包模型
|
||||
type Code2SessionResult struct {
|
||||
OpenId string `json:"openid"`
|
||||
SessionKey string `json:"session_key"`
|
||||
UnionId string `json:"unionid"`
|
||||
ErrCode uint `json:"errcode"`
|
||||
ErrMsg string `json:"errmsg"`
|
||||
}
|
||||
|
||||
// UserInfo 用户信息,OpenID用户唯一标识
|
||||
type UserInfo struct {
|
||||
OpenId string `json:"openId"`
|
||||
}
|
Reference in New Issue
Block a user