You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
4.4 KiB
120 lines
4.4 KiB
package customerform
|
|
|
|
type ListPageFields struct {
|
|
TableData TableDataInfo `json:"tableData"`
|
|
SearchData []SearchButtonInfo `json:"searchData"`
|
|
Loading bool `json:"loading"`
|
|
AttrObj interface{} `json:"attrObj"`
|
|
Config ConfigInfo `json:"config"`
|
|
TagList interface{} `json:"tagList"`
|
|
FormId interface{} `json:"formId"`
|
|
FormList []interface{} `json:"formList"`
|
|
Name string `json:"name"`
|
|
TreeData interface{} `json:"treeData"`
|
|
PreviewVisible bool `json:"previewVisible"`
|
|
TabsName string `json:"tabsName"`
|
|
FormFieldList []interface{} `json:"formFieldList"`
|
|
FormApi FormApiInfor `json:"formApi"`
|
|
Dict interface{} `json:"dict"`
|
|
RefreshTable bool `json:"refreshTable"`
|
|
View map[string]ViewInfo `json:"view"`
|
|
}
|
|
|
|
type ViewInfo struct {
|
|
Status bool `json:"status"`
|
|
IsClick bool `json:"isClick"`
|
|
Form FormInfo `json:"form"`
|
|
}
|
|
type FormInfo struct {
|
|
StartTime string `json:"startTime"`
|
|
EndTime string `json:"endTime"`
|
|
DayType int `json:"dayType"`
|
|
SortWord string `json:"sortWord"`
|
|
Sort int `json:"sort"`
|
|
MapWord string `json:"mapWord"`
|
|
Title []string `json:"title"`
|
|
TitleWork string `json:"titleWork"`
|
|
ImgWork string `json:"imgWork"`
|
|
Describe interface{} `json:"describe"`
|
|
}
|
|
type FormApiInfor struct {
|
|
Type string `json:"type"`
|
|
AddApiUrl string `json:"addApiUrl"`
|
|
EditApiUrl string `json:"editApiUrl"`
|
|
DelApiUrl string `json:"delApiUrl"`
|
|
LookApiUrl string `json:"lookApiUrl"`
|
|
}
|
|
|
|
type ConfigInfo struct {
|
|
SearchIsShow bool `json:"searchIsShow"`
|
|
SearchFormIsShow bool `json:"searchFormIsShow"`
|
|
OpenPageMode string `json:"openPageMode"`
|
|
PageSize int `json:"pageSize"`
|
|
}
|
|
|
|
type TableDataInfo struct {
|
|
Columns []SearchButtonInfo `json:"columns"`
|
|
Config interface{} `json:"config"`
|
|
ControlBtn []controlBtnInfo `json:"controlBtn"`
|
|
OperateBtn []controlBtnInfo `json:"operateBtn"`
|
|
}
|
|
|
|
type controlBtnInfo struct {
|
|
Label string `json:"label"`
|
|
Key string `json:"key"`
|
|
Type string `json:"type"`
|
|
Size string `json:"size"`
|
|
Icon string `json:"icon"`
|
|
}
|
|
|
|
// 自定义表单组件基本属性
|
|
type UnitAttribute struct {
|
|
Name string `json:"name"` //组件名称
|
|
Key string `json:"key"` //主键识别符
|
|
Class string `json:"class"` //组件分类
|
|
Auxiliary interface{} `json:"auxiliary"` //组件属性
|
|
ActiveValue string `json:"activeValue"` //开关的开值
|
|
InactiveValue string `json:"inactiveValue"` //开关的关值
|
|
Options []OptionsList `json:"options"` //附件判断值
|
|
Value interface{} `json:"value"` //判定值
|
|
Sort int `json:"sort"` //排序
|
|
FilePath string `json:"filePath"` //
|
|
CarsuselConfigArr []CarsuselConfigArrInfo `json:"carsuselConfigArr"` //
|
|
VideoList []VideoMsgInfo `json:"videoList"` //
|
|
}
|
|
type OptionsList struct {
|
|
Label string `json:"label"` //名称
|
|
Value string `json:"value"` //判定值
|
|
}
|
|
|
|
type TableFormUnit struct {
|
|
MasterInfo []UnitAttribute `json:"masterInfo"` //主表组件列表
|
|
SunFormInfo []map[string][]UnitAttribute `json:"sunFormInfo"` //子表
|
|
Sort int `json:"sort"` //排序
|
|
}
|
|
|
|
type SunFormInfoStruct struct {
|
|
SunFormInfo []map[string][]UnitAttribute `json:"sunFormInfo"` //子表
|
|
}
|
|
|
|
// 输出视图条件类型模型
|
|
type ViewListMode struct {
|
|
Label string `json:"label"`
|
|
Value interface{} `json:"value"`
|
|
}
|
|
|
|
// 数据时间分割
|
|
type TimeFenGe struct {
|
|
DateTime string `json:"dateTime"`
|
|
WeekDay string `json:"weekDay"`
|
|
Day string `json:"day"`
|
|
Stor int `json:"stor"`
|
|
TimeUnix int64 `json:"timeUnix"`
|
|
StartAndEnd StartAndEndInfo `json:"startAndEnd"`
|
|
List []interface{} `json:"list"`
|
|
}
|
|
|
|
type StartAndEndInfo struct {
|
|
Start int64 `json:"start"`
|
|
End int64 `json:"end"`
|
|
}
|
|
|