-
Notifications
You must be signed in to change notification settings - Fork 15
/
response.go
47 lines (39 loc) · 1.26 KB
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package tiktok
import "encoding/json"
type Response struct {
Code int `json:"code"`
Message string `json:"message"`
RequestID string `json:"request_id"`
Data json.RawMessage `json:"data"`
}
type AccessTokenResponse struct {
AccessToken string `json:"access_token"`
AccessTokenExpireIn int `json:"access_token_expire_in"`
RefreshToken string `json:"refresh_token"`
RefreshTokenExpireIn int `json:"refresh_token_expire_in"`
OpenID string `json:"open_id"`
SellerName string `json:"seller_name"`
}
/*
type OrdersIDRequest struct {
OrderID string `json:"order_id" url:"order_id" validate:"required"`
}
type AutoGenerated struct {
Code int `json:"code"`
Message string `json:"message"`
RequestID string `json:"request_id"`
Data struct{} `json:"data"`
}
type ProductSKU struct {
ID string `json:"id"`
SellerSku string `json:"seller_sku"`
SalesAttributes []SalesAttribute `json:"sales_attributes"`
}
type SizeChart struct {
Height int `json:"height"`
ID string `json:"id"`
ThumbUrlList string `json:"thumb_url_list"`
UrlList string `json:"url_list"`
Width int `json:"width"`
}
*/