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