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)
}