forked from uadmin/uadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
field_type.go
99 lines (79 loc) · 1.54 KB
/
field_type.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package uadmin
// FieldType for field type in builder field
type FieldType int
// String for string type
func (FieldType) String() FieldType {
return 1
}
// Int for int type
func (FieldType) Int() FieldType {
return 2
}
// Float for float type
func (FieldType) Float() FieldType {
return 3
}
// Multilingual for multiminual type
func (FieldType) Multilingual() FieldType {
return 4
}
// Email for email type
func (FieldType) Email() FieldType {
return 5
}
// Boolean for boolean type
func (FieldType) Boolean() FieldType {
return 6
}
// DateTime for time.Time type
func (FieldType) DateTime() FieldType {
return 7
}
// DateTimePtr for time.Time pointer type
func (FieldType) DateTimePtr() FieldType {
return 8
}
// ForeignKey for fk type
func (FieldType) ForeignKey() FieldType {
return 9
}
// M2M for m2m type
func (FieldType) M2M() FieldType {
return 10
}
// ProgressBar for progressbar type
func (FieldType) ProgressBar() FieldType {
return 11
}
// HTML for html type
func (FieldType) HTML() FieldType {
return 12
}
// StaticList for list type
func (FieldType) StaticList() FieldType {
return 13
}
// File for file type
func (FieldType) File() FieldType {
return 14
}
// Image for image type
func (FieldType) Image() FieldType {
return 15
}
// Money for money type
func (FieldType) Money() FieldType {
return 16
}
// Code for code type
func (FieldType) Code() FieldType {
return 17
}
// Link for link type
func (FieldType) Link() FieldType {
return 18
}
// Password for password type
func (FieldType) Password() FieldType {
return 19
}