enums.go
1.3 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
46
47
48
49
50
51
52
53
package domain
type FileType string
var (
SourceFile FileType = "SourceFile"
VerifiedFile FileType = "VerifiedFile"
TemporaryFile FileType = "TemporaryFile"
)
var (
GenerateMainTable OperationType = "GenerateMainTable" // 主表生成
SpiltMainTable OperationType = "SpiltMainTable" //主表拆分
ImportData OperationType = "ImportData" //数据导入
GenerateSubTable OperationType = "GenerateSubTable" //分表生成
CopyTable OperationType = "CopyTable" //表复制
RowEdit OperationType = "RowEdit" // 编辑记录
FileUpload OperationType = "FileUpload" // 文件上传
FileVerify OperationType = "FileVerify" // 文件校验
)
var (
VerifiedStepLog LogType = 1
CommonLog LogType = 2
)
var (
MainTable TableType = "MainTable"
SideTable TableType = "SideTable"
SubTable TableType = "SubTable"
ExcelTable TableType = "ExcelTable"
VerifiedExcelTable TableType = "VerifiedExcelTable"
)
func (t FileType) ToString() string {
return string(t)
}
type LogType int
type TableType string
func (t TableType) ToString() string {
return string(t)
}
type ObjectType TableType
type OperationType string
func (t OperationType) ToString() string {
return string(t)
}