// namespace SafeCampus.System; /// /// 字典查询参数 /// public class DictInput { } /// /// 字典树参数 /// public class DictTreeInput { /// /// 字典分类 /// public string Category { get; set; } } /// /// 字典查询参数 /// public class DictPageInput : BasePageInput { /// /// 父id /// public long ParentId { get; set; } /// /// 分类 /// public string Category { get; set; } = SysDictConst.DICT_CATEGORY_FRM; } /// /// 添加字典参数 /// public class DictAddInput : SysDict { /// /// 父ID /// public override long ParentId { get; set; } = 0; /// /// 字典名称 /// [Required(ErrorMessage = "DictLabel不能为空")] public override string DictLabel { get; set; } /// /// 字典值 /// [Required(ErrorMessage = "DictValue不能为空")] public override string DictValue { get; set; } } /// /// 编辑字典参数 /// public class DictEditInput : DictAddInput { /// /// ID /// [IdNotNull(ErrorMessage = "Id不能为空")] public override long Id { get; set; } } /// /// 删除字典参数 /// public class DictDeleteInput : BaseIdListInput { }