feat 添加ImageGroups
This commit is contained in:
parent
4ac9614af6
commit
18ceb8a077
@ -105,6 +105,7 @@ type ProductData struct {
|
|||||||
Inventory Inventory `json:"inventory"`
|
Inventory Inventory `json:"inventory"`
|
||||||
Url string `json:"url"`
|
Url string `json:"url"`
|
||||||
MasterId string `json:"masterId"`
|
MasterId string `json:"masterId"`
|
||||||
|
ImageGroups []ImageGroup `json:"imageGroups"`
|
||||||
Prices struct {
|
Prices struct {
|
||||||
CurrentPrice float64 `json:"currentPrice"`
|
CurrentPrice float64 `json:"currentPrice"`
|
||||||
} `json:"prices"`
|
} `json:"prices"`
|
||||||
@ -147,6 +148,7 @@ type PageDataResponse struct {
|
|||||||
Products []Product `json:"products"`
|
Products []Product `json:"products"`
|
||||||
} `json:"pageData"`
|
} `json:"pageData"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Product struct {
|
type Product struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Colors []Color `json:"colors"`
|
Colors []Color `json:"colors"`
|
||||||
|
@ -2,15 +2,16 @@ package coach_client
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestClient(t *testing.T) {
|
func TestClient(t *testing.T) {
|
||||||
subs := []string{"https://us.timerzz.com:26106/vmess/sub"}
|
subs := []string{"https://us.timerzz.com:26106/vmess/sub"}
|
||||||
pool := proxy.NewProxyPool(subs)
|
pool := proxy.NewProxyPool(subs)
|
||||||
client := USClient(pool)
|
client := USClient(pool)
|
||||||
resp, err := client.ViewAllBags(context.Background(), 1)
|
resp, err := client.RequestProductDetail(context.Background(), "CU808-CHK")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user