huangjiajun 2 weeks ago
parent
commit
34a00dfd6f
2 changed files with 9 additions and 0 deletions
  1. +8
    -0
      chanxuanTikTok/api.go
  2. +1
    -0
      chanxuanTikTok/md.go

+ 8
- 0
chanxuanTikTok/api.go View File

@@ -20,6 +20,14 @@ func GetGoods(acctoken string, args map[string]string) []ChanxuanTikTokGoods {
json.Unmarshal([]byte(str), &list) json.Unmarshal([]byte(str), &list)
return list return list
} }
func GetGoodsCate(acctoken string, args map[string]string) ChanxuanTikTokGoodsDetail {
//goods_id
send, _ := Send("/jx/v1/partner/product/categoryQry", acctoken, args)
var list ChanxuanTikTokGoodsDetail
str := gjson.Get(send, "data").String()
json.Unmarshal([]byte(str), &list)
return list
}
func GetGoodsDetail(acctoken string, args map[string]string) ChanxuanTikTokGoodsDetail { func GetGoodsDetail(acctoken string, args map[string]string) ChanxuanTikTokGoodsDetail {
//goods_id //goods_id
send, _ := Send("/jx/v1/partner/product/jxGoodsDetails", acctoken, args) send, _ := Send("/jx/v1/partner/product/jxGoodsDetails", acctoken, args)


+ 1
- 0
chanxuanTikTok/md.go View File

@@ -41,6 +41,7 @@ type ChanxuanTikTokOrder struct {
TotalPayAmount int `json:"total_pay_amount"` TotalPayAmount int `json:"total_pay_amount"`
UpdateTime string `json:"update_time"` UpdateTime string `json:"update_time"`
VipMsg string `json:"vip_msg"` VipMsg string `json:"vip_msg"`
AfterSalesStatus interface{} `json:"after_sales_status"`
} }
type ChanxuanTikTokGoodsDetail struct { type ChanxuanTikTokGoodsDetail struct {
ActivityCosRatio int `json:"activity_cos_ratio"` ActivityCosRatio int `json:"activity_cos_ratio"`


Loading…
Cancel
Save