associate_ele_api.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package model
  2. // ArgEleAccessToken ele access token args.
  3. type ArgEleAccessToken struct {
  4. AuthCode string `json:"auth_code"`
  5. }
  6. // EleAccessTokenResp ele access token resp.
  7. type EleAccessTokenResp struct {
  8. OpenID string `json:"open_id"`
  9. }
  10. // ArgEleReceivePrizes receive prizes args.
  11. type ArgEleReceivePrizes struct {
  12. ElemeOpenID string `json:"eleme_open_id"`
  13. BliOpenID string `json:"bli_open_id"`
  14. SourceID string `json:"source_id"`
  15. }
  16. // EleReceivePrizesResp receive prizes resp.
  17. type EleReceivePrizesResp struct {
  18. Amount float64 `json:"amount"`
  19. SumCondition float64 `json:"sum_condition"`
  20. Description string `json:"description"`
  21. }
  22. // ArgEleUnionUpdateOpenID union update open id args.
  23. type ArgEleUnionUpdateOpenID struct {
  24. ElemeOpenID string `json:"eleme_open_id"`
  25. BliOpenID string `json:"bli_open_id"`
  26. }
  27. // EleUnionUpdateOpenIDResp union update resp.
  28. type EleUnionUpdateOpenIDResp struct {
  29. Status int32 `json:"status"`
  30. Message string `json:"message"`
  31. }
  32. // ArgEleBindUnion ele salary bind vip args.
  33. type ArgEleBindUnion struct {
  34. ElemeOpenID string `json:"eleme_open_id"`
  35. BliOpenID string `json:"bli_open_id"`
  36. VipType int32 `json:"vip_type"`
  37. SourceID string `json:"source_id"`
  38. UserIP string `json:"user_ip"`
  39. }
  40. // EleBindUnionResp ele bind union resp.
  41. type EleBindUnionResp struct {
  42. Status int32 `json:"status"`
  43. Message string `json:"message"`
  44. }
  45. // ArgEleCanPurchase ele can purchase args.
  46. type ArgEleCanPurchase struct {
  47. ElemeOpenID string `json:"eleme_open_id"`
  48. BliOpenID string `json:"bli_open_id"`
  49. UserIP string `json:"user_ip"`
  50. VipType int32 `json:"vip_type"`
  51. }
  52. // EleCanPurchaseResp ele can purchase resp.
  53. type EleCanPurchaseResp struct {
  54. CanPurchase bool `json:"can_purchase"`
  55. Status int32 `json:"status"`
  56. Message string `json:"message"`
  57. }
  58. // ArgEleUnionMobile ele union mobile.
  59. type ArgEleUnionMobile struct {
  60. ElemeOpenID string `json:"eleme_open_id"`
  61. BliOpenID string `json:"bli_open_id"`
  62. }
  63. // EleUnionMobileResp ele get union mobile resp.
  64. type EleUnionMobileResp struct {
  65. Status int32 `json:"status"`
  66. Message string `json:"message"`
  67. BlurMobile string `json:"blur_mobile"`
  68. }
  69. // EleRedPackagesResp ele red packages.
  70. type EleRedPackagesResp struct {
  71. Name string `json:"name"`
  72. Amount float64 `json:"amount"`
  73. SumCondition float64 `json:"sum_condition"`
  74. }
  75. // EleSpecailFoodsResp ele specail foods resp.
  76. type EleSpecailFoodsResp struct {
  77. RestaurantName string `json:"restaurant_name"`
  78. FoodName string `json:"food_name"`
  79. FoodURL string `json:"food_url"`
  80. Discount float64 `json:"discount"`
  81. Amount float64 `json:"amount"`
  82. OriginalAmount float64 `json:"original_amount"`
  83. RatingPoint float64 `json:"rating_point"`
  84. }