user.go 589 B

12345678910111213141516171819202122232425262728
  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. }
  17. type MerchantUserCodeRequest struct {
  18. Code string `json:"code"`
  19. }
  20. type MerchantUserCodeResponse struct {
  21. OpenId string `json:"open_id"`
  22. }