第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.1 KiB

  1. package chanxuanTikTok
  2. type ChanxuanTikTokGoods struct {
  3. Title string `json:"title"`
  4. Cover string `json:"cover"`
  5. Price int `json:"price"`
  6. OriginPrice int `json:"origin_price"`
  7. CosRatio float64 `json:"cos_ratio"`
  8. Sales int `json:"sales"`
  9. DetailUrl string `json:"detail_url"`
  10. ProductId string `json:"product_id"`
  11. KolCosRatio float64 `json:"kol_cos_ratio"`
  12. ActivityCosRatio float64 `json:"activity_cos_ratio"`
  13. ShopName string `json:"shop_name"`
  14. ActivityId int `json:"activity_id"`
  15. CategoryName string `json:"category_name"`
  16. }
  17. type ChanxuanTikTokGoodsUrl struct {
  18. DkPassword string `json:"dk_password"`
  19. DkCodeImg string `json:"dk_code_img"`
  20. DyDeeplink string `json:"dy_deeplink"`
  21. DySharelink string `json:"dy_sharelink"`
  22. }
  23. type ChanxuanTikTokOrder struct {
  24. CommissionRate int `json:"commission_rate"`
  25. CxServiceRate int `json:"cx_service_rate"`
  26. EstimatedCommission int `json:"estimated_commission"`
  27. EstimatedTechServiceFee int `json:"estimated_tech_service_fee"`
  28. FlowPoint string `json:"flow_point"`
  29. ItemNum int `json:"item_num"`
  30. OrderId string `json:"order_id"`
  31. PaySuccessTime string `json:"pay_success_time"`
  32. ProductId string `json:"product_id"`
  33. ProductImg string `json:"product_img"`
  34. ProductName string `json:"product_name"`
  35. RealCommission int `json:"real_commission"`
  36. RefundTime interface{} `json:"refund_time"`
  37. SettleTime interface{} `json:"settle_time"`
  38. SettledTechServiceFee int `json:"settled_tech_service_fee"`
  39. ShopId int `json:"shop_id"`
  40. TotalPayAmount int `json:"total_pay_amount"`
  41. UpdateTime string `json:"update_time"`
  42. VipMsg string `json:"vip_msg"`
  43. ActivistType interface{} `json:"activist_type"`
  44. }
  45. type ChanxuanTikTokGoodsDetail struct {
  46. ActivityCosRatio int `json:"activity_cos_ratio"`
  47. AwemeList []string `json:"aweme_list"`
  48. AwemesInfo []struct {
  49. AwemeId string `json:"aweme_id"`
  50. AwemeCover string `json:"aweme_cover"`
  51. AwemeUrl string `json:"aweme_url"`
  52. } `json:"awemes_info"`
  53. BrandCode string `json:"brand_code"`
  54. Category string `json:"category"`
  55. CosRatio int `json:"cos_ratio"`
  56. Cover string `json:"cover"`
  57. DescLevel int `json:"desc_level"`
  58. DescScore int `json:"desc_score"`
  59. DetailImages []string `json:"detail_images"`
  60. DetailUrl string `json:"detail_url"`
  61. ExprLevel int `json:"expr_level"`
  62. ExprScore int `json:"expr_score"`
  63. Gain string `json:"gain"`
  64. Images []string `json:"images"`
  65. KolCosRatio int `json:"kol_cos_ratio"`
  66. OriginPrice float64 `json:"origin_price"`
  67. PostLevel int `json:"post_level"`
  68. PostScore float64 `json:"post_score"`
  69. Price float64 `json:"price"`
  70. ProductId int64 `json:"product_id"`
  71. PromotionEndTime string `json:"promotion_end_time"`
  72. PromotionStartTime string `json:"promotion_start_time"`
  73. Sales int `json:"sales"`
  74. SellPoint string `json:"sell_point"`
  75. ServLevel int `json:"serv_level"`
  76. ServScore float64 `json:"serv_score"`
  77. ShopIcon string `json:"shop_icon"`
  78. ShopId int `json:"shop_id"`
  79. ShopName string `json:"shop_name"`
  80. Skus struct {
  81. Field1 struct {
  82. EffectivePrice int `json:"effective_price"`
  83. Price int `json:"price"`
  84. StockNum int `json:"stock_num"`
  85. } `json:"1801560319889520"`
  86. } `json:"skus"`
  87. Spec []struct {
  88. Name string `json:"name"`
  89. SpecItems []struct {
  90. Id string `json:"id"`
  91. Name string `json:"name"`
  92. } `json:"spec_items"`
  93. } `json:"spec"`
  94. Title string `json:"title"`
  95. }