init project

This commit is contained in:
2023-04-24 17:19:41 +08:00
parent 84729ebb66
commit cdb5a4f9cd
51 changed files with 3328 additions and 1 deletions

22
model/resp/login.go Normal file
View 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"`
}