chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package excel
|
||||
|
||||
type ColumnType string
|
||||
|
||||
const (
|
||||
ColumnTypeString ColumnType = "string"
|
||||
ColumnTypeInt ColumnType = "int"
|
||||
ColumnTypePositiveInt ColumnType = "positive_int"
|
||||
ColumnTypeNonNegativeInt ColumnType = "non_negative_int"
|
||||
ColumnTypeBool ColumnType = "bool"
|
||||
ColumnTypeDate ColumnType = "date"
|
||||
ColumnTypeDateTime ColumnType = "datetime"
|
||||
ColumnTypeAmount ColumnType = "amount"
|
||||
)
|
||||
|
||||
type ColumnSpec struct {
|
||||
Name string
|
||||
Required bool
|
||||
Type ColumnType
|
||||
}
|
||||
|
||||
type ConsistencyRule struct {
|
||||
Name string
|
||||
Type ColumnType
|
||||
AllowEmpty bool
|
||||
}
|
||||
|
||||
type RowIssue struct {
|
||||
RowNo int
|
||||
Column string
|
||||
Value string
|
||||
Message string
|
||||
}
|
||||
Reference in New Issue
Block a user