-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
45 lines (41 loc) · 1.06 KB
/
types.go
File metadata and controls
45 lines (41 loc) · 1.06 KB
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 main
import (
"time"
)
type Config struct {
Endpoint string `json:"endpoint"`
Username string `json:"username"`
Password string `json:"password"`
SrcDir string `json:"src_dir"`
DstDri string `json:"dst_dir"`
}
type BaseResponse struct {
Code int `json:"code"`
Message string `json:"message"`
}
type AuthLoginResponse struct {
BaseResponse
Data struct {
Token string `json:"token"`
} `json:"data"`
}
type FSListResponse struct {
BaseResponse
Data struct {
Content []*FSListContentItem `json:"content"`
Total int `json:"total"`
Readme string `json:"readme"`
Header string `json:"header"`
Write bool `json:"write"`
Provider string `json:"provider"`
} `json:"data"`
}
type FSListContentItem struct {
Name string `json:"name"`
Size int `json:"size"`
IsDir bool `json:"is_dir"`
Modified time.Time `json:"modified"`
Created time.Time `json:"created"`
Sign string `json:"sign"`
Type int `json:"type"`
}