Browse Source

更新

master
huangjiajun 11 months ago
parent
commit
c7c458b92b
2 changed files with 34 additions and 0 deletions
  1. +22
    -0
      haodanku/kuaishou_recharge.go
  2. +12
    -0
      md/haodanku.go

+ 22
- 0
haodanku/kuaishou_recharge.go View File

@@ -0,0 +1,22 @@
package haodanku

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md"
"encoding/json"
"github.com/tidwall/gjson"
)

func KuaishouRecharge(params map[string]string) []md.HaodankuKuaishouRecharge {
var goods = make([]md.HaodankuKuaishouRecharge, 0)
reqNew, err := SendReqNew("http://v3.api.haodanku.com/ks_prepaid_recharge", params)
if err != nil {
return goods
}
data := gjson.Get(string(reqNew), "data").String()
if data == "" {
return goods
}
var oldGoods []md.HaodankuKuaishouRecharge
json.Unmarshal([]byte(data), &oldGoods)
return oldGoods
}

+ 12
- 0
md/haodanku.go View File

@@ -1,5 +1,17 @@
package md

type HaodankuKuaishouRecharge struct {
Itemid string `json:"itemid"`
Itemtitle string `json:"itemtitle"`
Itemshorttitle string `json:"itemshorttitle"`
Itemendprice string `json:"itemendprice"`
Itemprice string `json:"itemprice"`
Itempic string `json:"itempic"`
Itemsale string `json:"itemsale"`
Tkrates string `json:"tkrates"`
Tkmoney string `json:"tkmoney"`
Shopname string `json:"shopname"`
}
type HaodankuFriendsCircleItems struct {
MaterialId string `json:"material_id"`
CopyWriter string `json:"copy_writer"`


Loading…
Cancel
Save