vip_outer.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package model
  2. // ArgAuthCode get open_id args.
  3. type ArgAuthCode struct {
  4. Code string `form:"auth_code" validate:"required"`
  5. APPID int64
  6. IP string
  7. }
  8. // OpenIDResp open_id resp.
  9. type OpenIDResp struct {
  10. OpenID string `json:"open_id"`
  11. }
  12. // OAuth2InfoResp oauth2 resp.
  13. type OAuth2InfoResp struct {
  14. Mid int64 `json:"mid"`
  15. Uname string `json:"uname"`
  16. }
  17. // ArgBind bind args.
  18. type ArgBind struct {
  19. OpenID string `form:"open_id" validate:"required"`
  20. OutOpenID string `form:"out_open_id" validate:"required"`
  21. AppID int64
  22. }
  23. // ArgUserInfoByOpenID args.
  24. type ArgUserInfoByOpenID struct {
  25. OpenID string `form:"open_id" validate:"required"`
  26. AppID int64
  27. IP string
  28. }
  29. // ArgBindInfo bind info args.
  30. type ArgBindInfo struct {
  31. Mid int64
  32. AppID int64
  33. }
  34. // ArgBilibiliPrizeGrant args.
  35. type ArgBilibiliPrizeGrant struct {
  36. PrizeKey string `form:"prize_key" validate:"required"`
  37. UniqueNo string `form:"unique_no" validate:"required"`
  38. OpenID string `form:"open_id" validate:"required"`
  39. AppID int64
  40. }
  41. // ArgBilibiliVipGrant bilibili vip grant args.
  42. type ArgBilibiliVipGrant struct {
  43. OpenID string `form:"open_id" validate:"required"`
  44. OutOpenID string `form:"out_open_id" validate:"required"`
  45. OutOrderNO string `form:"out_order_no" validate:"required"`
  46. Duration int32 `form:"duration" validate:"required"`
  47. AppID int64
  48. }
  49. // ArgOpenAuthCallBack args.
  50. type ArgOpenAuthCallBack struct {
  51. ThirdCode string `form:"auth_code" validate:"required"`
  52. State string `form:"state" validate:"required"`
  53. Mid int64
  54. AppID int64
  55. }