user.go 447 B

1234567891011121314151617181920
  1. package models
  2. type OpenIdSetRequest struct {
  3. Code string `json:"code"` //微信code
  4. }
  5. type OpenIdSetResponse struct {
  6. SessionKey string `json:"session_key,omitempty"`
  7. OpenId string `json:"openid,omitempty"`
  8. Errcode int `json:"errcode,omitempty"`
  9. Errmsg string `json:"errmsg,omitempty"`
  10. }
  11. type GetUserInfoRequest struct {
  12. OpenId string `json:"open_id"`
  13. }
  14. type GetUserInfoResponse struct {
  15. OpenId string `json:"open_id"`
  16. }