第三方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.

md.go 4.0 KiB

2 months ago
2 months ago
2 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package chanxuanTikTok
  2. type ChanxuanTikTokGoods struct {
  3. Title string `json:"title"`
  4. Cover string `json:"cover"`
  5. Price float64 `json:"price"`
  6. OriginPrice float64 `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. DkCode_img 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. }
  44. type ChanxuanTikTokGoodsDetail struct {
  45. ActivityCosRatio int `json:"activity_cos_ratio"`
  46. AwemeList []string `json:"aweme_list"`
  47. AwemesInfo []struct {
  48. AwemeId string `json:"aweme_id"`
  49. AwemeCover string `json:"aweme_cover"`
  50. AwemeUrl string `json:"aweme_url"`
  51. } `json:"awemes_info"`
  52. BrandCode string `json:"brand_code"`
  53. Category string `json:"category"`
  54. CosRatio int `json:"cos_ratio"`
  55. Cover string `json:"cover"`
  56. DescLevel int `json:"desc_level"`
  57. DescScore int `json:"desc_score"`
  58. DetailImages []string `json:"detail_images"`
  59. DetailUrl string `json:"detail_url"`
  60. ExprLevel int `json:"expr_level"`
  61. ExprScore int `json:"expr_score"`
  62. Gain string `json:"gain"`
  63. Images []string `json:"images"`
  64. KolCosRatio int `json:"kol_cos_ratio"`
  65. OriginPrice float64 `json:"origin_price"`
  66. PostLevel int `json:"post_level"`
  67. PostScore float64 `json:"post_score"`
  68. Price float64 `json:"price"`
  69. ProductId int64 `json:"product_id"`
  70. PromotionEndTime string `json:"promotion_end_time"`
  71. PromotionStartTime string `json:"promotion_start_time"`
  72. Sales int `json:"sales"`
  73. SellPoint string `json:"sell_point"`
  74. ServLevel int `json:"serv_level"`
  75. ServScore float64 `json:"serv_score"`
  76. ShopIcon string `json:"shop_icon"`
  77. ShopId int `json:"shop_id"`
  78. ShopName string `json:"shop_name"`
  79. Skus struct {
  80. Field1 struct {
  81. EffectivePrice int `json:"effective_price"`
  82. Price int `json:"price"`
  83. StockNum int `json:"stock_num"`
  84. } `json:"1801560319889520"`
  85. } `json:"skus"`
  86. Spec []struct {
  87. Name string `json:"name"`
  88. SpecItems []struct {
  89. Id string `json:"id"`
  90. Name string `json:"name"`
  91. } `json:"spec_items"`
  92. } `json:"spec"`
  93. Title string `json:"title"`
  94. }