@@ -21,6 +21,7 @@ type TikTokGoods struct { | |||||
ActivityEndTime string `json:"promotion_end_time"` | ActivityEndTime string `json:"promotion_end_time"` | ||||
PublicCommission string `json:"public_commission"` | PublicCommission string `json:"public_commission"` | ||||
ServiceRatio string `json:"service_ratio"` | ServiceRatio string `json:"service_ratio"` | ||||
UpdateTime string `json:"update_time"` | |||||
} | } | ||||
type TikTokGoodsLm struct { | type TikTokGoodsLm struct { | ||||
@@ -46,6 +47,7 @@ type TikTokGoodsLm struct { | |||||
ServiceRatio string `json:"service_ratio"` | ServiceRatio string `json:"service_ratio"` | ||||
Imgs []string `json:"imgs"` | Imgs []string `json:"imgs"` | ||||
ShopTotalScore interface{} `json:"shop_total_score"` | ShopTotalScore interface{} `json:"shop_total_score"` | ||||
UpdateTime string `json:"update_time"` | |||||
} | } | ||||
type ShopTotalScoreData struct { | type ShopTotalScoreData struct { | ||||
Level int `json:"level"` | Level int `json:"level"` | ||||
@@ -72,6 +72,7 @@ func TrusteeshipProduct(args map[string]string) ([]TikTokGoods, int64) { | |||||
} | } | ||||
for _, v := range lmData.Data.Data { | for _, v := range lmData.Data.Data { | ||||
tmp := CommGoodsDetail(v) | tmp := CommGoodsDetail(v) | ||||
tmp.UpdateTime = v.UpdateTime | |||||
goodsList = append(goodsList, tmp) | goodsList = append(goodsList, tmp) | ||||
} | } | ||||
fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) | fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) | ||||
@@ -122,6 +123,7 @@ func ActivityProduct(args map[string]string) ([]TikTokGoods, int64, string) { | |||||
} | } | ||||
for _, v := range lmData.Data.Data { | for _, v := range lmData.Data.Data { | ||||
tmp := CommGoodsDetail(v) | tmp := CommGoodsDetail(v) | ||||
tmp.UpdateTime = v.UpdateTime | |||||
goodsList = append(goodsList, tmp) | goodsList = append(goodsList, tmp) | ||||
} | } | ||||
fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) | fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) | ||||