using System.ComponentModel.DataAnnotations; using Common.Enum; using Entity.DbModel.System; namespace Entity.Dto.Req { public class DictDataReq : BaseIdReq { /// /// 状态 /// public StatusEnum Status { get; set; } } public class PageDictDataReq : BasePageReq { /// /// 字典类型Id /// public long DictTypeId { get; set; } /// /// 值 /// public string Value { get; set; } = ""; /// /// 编码 /// public string Code { get; set; } = ""; } public class AddDictDataReq : SysDictData { } public class UpdateDictDataReq : AddDictDataReq { } public class DeleteDictDataReq : BaseIdReq { } public class GetDataDictDataReq { /// /// 字典类型Id /// public long DictTypeId { get; set; } } public class QueryDictDataReq { /// /// 编码 /// [Required(ErrorMessage = "字典唯一编码不能为空")] public string Code { get; set; } /// /// 状态 /// public int? Status { get; set; } } }