yuleduiPay/service/vo/wx.go

28 lines
866 B
Go
Raw Normal View History

2024-11-18 09:15:45 +08:00
package vo
2024-11-22 09:23:33 +08:00
import "github.com/gogf/gf/v2/frame/g"
2024-11-18 09:15:45 +08:00
type WxLoginReq struct {
2024-11-22 09:23:33 +08:00
g.Meta `path:"/login" method:"post"`
2024-11-18 09:15:45 +08:00
JsCode string `json:"jsCode"`
}
2024-11-22 09:23:33 +08:00
type WxLoginRes struct {
OpenId string `json:"openid"` // 用户唯一标识
SessionKey string `json:"session_key"` // 会话密钥
UnionId string `json:"unionid"` // 用户在开放平台的唯一标识符,若当前小程序已绑定到微信开放平台帐号下会返回
ErrCode int `json:"errcode"` // 错误码
ErrMsg string `json:"errmsg"` // 错误信息
Mobile string `json:"mobile"` // 用户手机号
Bean float64 `json:"bean"` // 金豆个数
}
type WxMobileReq struct {
g.Meta `path:"/register" method:"post"`
Code string `json:"code"`
OpenId string `json:"openId"`
}
type WxMobileRes struct {
Mobile string `json:"mobile"`
2024-11-18 09:15:45 +08:00
}