using JNPF.DependencyInjection; namespace JNPF.Common.Models; /// /// 代码生成-导入 控件配置属性. /// public class CodeGenFieldsModel { /// /// 设置默认值为空字符串. /// public string __vModel__ { get; set; } = string.Empty; /// /// 层级. /// public int level { get; set; } /// /// 最小值. /// public int? min { get; set; } /// /// 最大值. /// public int? max { get; set; } /// /// 开关控件 属性 - 开启展示值. /// public string activeTxt { get; set; } /// /// 开关控件 属性 - 关闭展示值. /// public string inactiveTxt { get; set; } /// /// 显示绑定值的格式. /// public string format { get; set; } /// /// 是否多选. /// public bool multiple { get; set; } /// /// 选项分隔符. /// public string separator { get; set; } /// /// 插槽. /// public string __slot__ { get; set; } /// /// 配置. /// public string __config__ { get; set; } /// /// 配置选项. /// public string props { get; set; } /// /// 配置项. /// public string options { get; set; } /// /// 弹窗选择主键. /// public string propsValue { get; set; } /// /// 关联表单字段. /// public string relationField { get; set; } /// /// 关联表单id. /// public string modelId { get; set; } /// /// 数据接口ID. /// public string interfaceId { get; set; } /// /// 可选范围. /// public string selectType { get; set; } /// /// 可选部门. /// public string ableDepIds { get; set; } /// /// 可选岗位. /// public string ablePosIds { get; set; } /// /// 可选用户. /// public string ableUserIds { get; set; } /// /// 可选角色. /// public string ableRoleIds { get; set; } /// /// 可选分组. /// public string ableGroupIds { get; set; } /// /// 新用户选择控件. /// public string ableIds { get; set; } } public class CodeGenChildsModel { /// /// 设置默认值为空字符串. /// public string __vModel__ { get; set; } = string.Empty; /// /// 层级. /// public int level { get; set; } /// /// 最小值. /// public int? min { get; set; } /// /// 最大值. /// public int? max { get; set; } /// /// 开关控件 属性 - 开启展示值. /// public string activeTxt { get; set; } /// /// 开关控件 属性 - 关闭展示值. /// public string inactiveTxt { get; set; } /// /// 显示绑定值的格式. /// public string format { get; set; } /// /// 是否多选. /// public bool multiple { get; set; } /// /// 选项分隔符. /// public string separator { get; set; } /// /// 插槽. /// public CodeGenSlotModel __slot__ { get; set; } /// /// 配置. /// public CodeGenConfigModel __config__ { get; set; } /// /// 配置选项. /// public CodeGenPropsModel props { get; set; } /// /// 配置项. /// public List options { get; set; } /// /// 弹窗选择主键. /// public string propsValue { get; set; } /// /// 关联表单字段. /// public string relationField { get; set; } /// /// 关联表单id. /// public string modelId { get; set; } /// /// 数据接口ID. /// public string interfaceId { get; set; } /// /// 可选范围. /// public string selectType { get; set; } /// /// 可选部门. /// public string ableDepIds { get; set; } /// /// 可选岗位. /// public string ablePosIds { get; set; } /// /// 可选用户. /// public string ableUserIds { get; set; } /// /// 可选角色. /// public string ableRoleIds { get; set; } /// /// 可选分组. /// public string ableGroupIds { get; set; } /// /// 新用户选择控件. /// public string ableIds { get; set; } } /// /// 代码生成-插槽模型. /// public class CodeGenSlotModel { /// /// 配置项. /// public List> options { get; set; } } /// /// 代码生成-配置模型. /// public class CodeGenConfigModel { /// /// 关联表名. /// public string tableName { get; set; } /// /// 验证规则. /// public List regList { get; set; } /// /// jnpf识别符. /// public string jnpfKey { get; set; } /// /// 单据规则必须填. /// public string rule { get; set; } /// /// 数据字典类型. /// public string dictionaryType { get; set; } /// /// 是否必填. /// public bool required { get; set; } /// /// 是否唯一. /// public bool unique { get; set; } /// /// 控件标题名. /// public string label { get; set; } /// /// object数据类型 (static、 dictionary). /// public string dataType { get; set; } /// /// 远端数据接口. /// public string propsUrl { get; set; } /// /// 子集. /// public List children { get; set; } /// /// 选项配置. /// public CodeGenPropsBeanModel props { get; set; } } /// /// 代码生成-配置属性模型. /// public class CodeGenPropsBeanModel { /// /// 指定选项标签为选项对象的某个属性值. /// public string label { get; set; } /// /// 指定选项的值为选项对象的某个属性值. /// public string value { get; set; } /// /// 指定选项的子选项为选项对象的某个属性值. /// public string children { get; set; } /// /// 是否多选. /// public bool multiple { get; set; } } /// /// 验证规则模型. /// [SuppressSniffer] public class CodeGenRegListModel { /// /// 正则表达式. /// public string pattern { get; set; } /// /// 错误提示. /// public string message { get; set; } } /// /// 配置选项模型. /// public class CodeGenPropsModel { /// /// 配置选项. /// public CodeGenPropsBeanModel props { get; set; } }