-
Notifications
You must be signed in to change notification settings - Fork 114
/
struct.go
37 lines (34 loc) · 922 Bytes
/
struct.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
package quickfile
import (
"io"
"time"
)
type uploadConfig struct {
debug bool
fileName string
fileReader io.Reader
fileSize int64
}
type uploadResp struct {
ID string `json:"Id"`
UID string `json:"Uid"`
FileName string `json:"FileName"`
StorageName string `json:"StorageName"`
Provider struct {
Name string `json:"Name"`
URL string `json:"Url"`
Free bool `json:"Free"`
} `json:"Provider"`
Md5 string `json:"Md5"`
Path string `json:"Path"`
Size int `json:"Size"`
ContentType string `json:"ContentType"`
URL string `json:"Url"`
ShortURL string `json:"ShortUrl"`
QrCode string `json:"QrCode"`
LinkID string `json:"LinkId"`
AutoDelete bool `json:"AutoDelete"`
Expiration int `json:"Expiration"`
ExpiresAt time.Time `json:"ExpiresAt"`
Time time.Time `json:"Time"`
}