chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// ExportColumn 导出列。
|
||||
// 由前端按「当前列表显示列」传入,顺序即导出列顺序。
|
||||
type ExportColumn struct {
|
||||
// Field 列表模型字段名(对应 JSON tag),导出时按它取值
|
||||
Field string `json:"field" dc:"字段名"`
|
||||
// Label 表头文字,取列表页列标题
|
||||
Label string `json:"label" dc:"列标题"`
|
||||
DictType string `json:"dictType,omitempty" dc:"列表列使用的字典类型"`
|
||||
// DictValueMap 字典取值前的值归一化(页面渲染前改过值时用)
|
||||
DictValueMap map[string]string `json:"dictValueMap,omitempty" dc:"列表渲染前的值归一化"`
|
||||
// ValueMap 固定值映射:页面用三元表达式等非字典方式渲染的列(如 1→池卡、0→单卡)
|
||||
ValueMap map[string]string `json:"valueMap,omitempty" dc:"固定值映射,键为原始值"`
|
||||
// ValueDefault 固定值映射未命中时的兜底文案;为空则保留原值
|
||||
ValueDefault string `json:"valueDefault,omitempty" dc:"固定值映射兜底文案"`
|
||||
FallbackField string `json:"fallbackField,omitempty" dc:"旧数据备用字段"`
|
||||
}
|
||||
Reference in New Issue
Block a user