应用集成平台服务端
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.
 
 
 

73 lines
2.6 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"`
}
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"` //组件分类
ActiveValue string `json:"activeValue"` //开关的开值
InactiveValue string `json:"inactiveValue"` //开关的关值
Options []OptionsList `json:"options"` //附件判断值
}
type OptionsList struct {
Label string `json:"label"` //名称
Value string `json:"value"` //判定值
}
type TableFormUnit struct {
MasterInfo []UnitAttribute `json:"masterInfo"` //主表组件列表
SunFormInfo []map[string][]UnitAttribute `json:"sunFormInfo"` //子表
}
type SunFormInfoStruct struct {
SunFormInfo []map[string][]UnitAttribute `json:"sunFormInfo"` //子表
}