namespace SimpleAdmin.Application; /// /// 保存动态入职字段参数。 /// public class OnboardingFormFieldSaveInput { /// /// 业务数据 Id。 /// public long? Id { get; set; } /// /// 动态字段编码。 /// [global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "字段编码不能为空")] public string FieldCode { get; set; } /// /// 动态字段名称。 /// [global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "字段名称不能为空")] public string FieldName { get; set; } /// /// 字段或变量数据类型。 /// [global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "数据类型不能为空")] public string DataType { get; set; } /// /// 可选项 JSON。 /// public string OptionsJson { get; set; } /// /// 字段校验规则。 /// public string ValidationRule { get; set; } /// /// 员工端输入提示。 /// public string Placeholder { get; set; } /// /// 启用状态或状态筛选条件。 /// public string Status { get; set; } = "enable"; } /// /// 保存入职材料类型参数。 /// public class OnboardingMaterialTypeSaveInput { /// /// 业务数据 Id。 /// public long? Id { get; set; } /// /// 材料类型编码。 /// [global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "资料编码不能为空")] public string MaterialCode { get; set; } /// /// 材料名称。 /// [global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "资料名称不能为空")] public string MaterialName { get; set; } /// /// 允许上传的文件扩展名。 /// public string AllowedExtensions { get; set; } /// /// 允许上传的最大文件数量。 /// public int MaxFileCount { get; set; } = 1; /// /// 单个文件最大大小,单位为 MB。 /// public int? MaxFileSizeMb { get; set; } /// /// 启用状态或状态筛选条件。 /// public string Status { get; set; } = "enable"; }