Browse Source

test

master
huangjiajun 1 year ago
parent
commit
ebabc033e9
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      tik_tok/md_tik_tok_goods.go
  2. +2
    -0
      tik_tok/svc_tik_tok_team.go

+ 2
- 0
tik_tok/md_tik_tok_goods.go View File

@@ -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"`


+ 2
- 0
tik_tok/svc_tik_tok_team.go View File

@@ -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)))


Loading…
Cancel
Save