-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload.go
45 lines (41 loc) · 1.21 KB
/
upload.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
package pingen
type UploadData struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes struct {
URL string `json:"url"`
URLSignature string `json:"url_signature"`
ExpiresAt string `json:"expires_at"`
} `json:"attributes"`
Links struct {
Self string `json:"self"`
} `json:"links"`
} `json:"data"`
}
type CreateData struct {
Data struct {
Type string `json:"type"`
Attributes struct {
FileOriginalName string `json:"file_original_name"`
FileURL string `json:"file_url"`
FileURLSignature string `json:"file_url_signature"`
AddressPosition string `json:"address_position"`
AutoSend bool `json:"auto_send"`
DeliveryProduct string `json:"delivery_product"`
PrintMode string `json:"print_mode"`
PrintSpectrum string `json:"print_spectrum"`
} `json:"attributes"`
} `json:"data"`
}
type SendData struct {
Data struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes struct {
DeliveryProduct string `json:"delivery_product"`
PrintMode string `json:"print_mode"`
PrintSpectrum string `json:"print_spectrum"`
} `json:"attributes"`
} `json:"data"`
}