associate_open.go 624 B

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. // ArgRegisterOpenID add open_id args.
  3. type ArgRegisterOpenID struct {
  4. Mid int64
  5. AppID int64
  6. }
  7. // RegisterOpenIDResp register openid resp.
  8. type RegisterOpenIDResp struct {
  9. OpenID string
  10. }
  11. // ArgOpenAuthCallBack callback args.
  12. type ArgOpenAuthCallBack struct {
  13. Mid int64
  14. ThirdCode string
  15. AppID int64
  16. }
  17. // ArgUserInfoByOpenID args.
  18. type ArgUserInfoByOpenID struct {
  19. AppID int64
  20. OpenID string
  21. IP string
  22. }
  23. // UserInfoByOpenIDResp resp.
  24. type UserInfoByOpenIDResp struct {
  25. Name string `json:"name"`
  26. BindState int32 `json:"bind_state"`
  27. OutOpenID string `json:"out_open_id"`
  28. }