-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathtypes.go
37 lines (31 loc) · 1.06 KB
/
types.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 xun
import "net/textproto"
// R alias map[string]interface{}, R is the first letter of "Row"
type R map[string]interface{}
// N an numberic value, R is the first letter of "Numberic"
type N struct {
Number interface{}
}
// T an datetime value, T is the first letter of "Time"
type T struct {
Time interface{}
}
// P an Paginator struct, P is the first letter of "Paginator"
type P struct {
Items []interface{} `json:"items"`
Total int `json:"total"`
TotalPages int `json:"total_pages"`
PageSize int `json:"page_size"`
CurrentPage int `json:"current_page"`
NextPage int `json:"next_page"`
PreviousPage int `json:"previous_page"`
LastPage int `json:"last_page"`
Options map[string]interface{} `json:"options,omtempty"`
}
// UploadFile deprecated -> gou.UploadFile upload file
type UploadFile struct {
Name string
TempFile string
Size int64
Header textproto.MIMEHeader
}