using Admin.NET.Core; using Admin.NET.Core.Service; using Furion.DataValidation; using System.ComponentModel.DataAnnotations; namespace Admin.NET.Application { /// /// 字典值参数 /// public class DictDataPageInput : PageInputBase { /// /// 字典类型Id /// public long TypeId { get; set; } /// /// 值 /// public string Value { get; set; } /// /// 编码 /// public string Code { get; set; } } /// /// /// public class QueryDictDataListInput { /// /// 字典类型Id /// [Required(ErrorMessage = "字典类型Id不能为空"), DataValidation(ValidationTypes.Numeric)] public long TypeId { get; set; } } /// /// /// public class QueryDictDataListByCodeInput { /// /// 字典类型Code /// [Required(ErrorMessage = "字典类型Code不能为空")] public string Code { get; set; } } /// /// /// public class AddDictDataInput { /// /// 字典类型Id /// [Required(ErrorMessage = "字典类型Id不能为空"), DataValidation(ValidationTypes.Numeric)] public long TypeId { get; set; } /// /// 值 /// [Required(ErrorMessage = "字典值不能为空")] public string Value { get; set; } /// /// 编码 /// [Required(ErrorMessage = "字典值编码不能为空")] public string Code { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// public CommonStatus Status { get; set; } } /// /// /// public class DeleteDictDataInput : BaseId { } /// /// /// public class UpdateDictDataInput { /// /// 字典值Id /// [Required(ErrorMessage = "字典值Id不能为空"), DataValidation(ValidationTypes.Numeric)] public long Id { get; set; } /// /// 字典类型Id /// [Required(ErrorMessage = "字典类型Id不能为空"), DataValidation(ValidationTypes.Numeric)] public long TypeId { get; set; } /// /// 值 /// [Required(ErrorMessage = "字典值不能为空")] public string Value { get; set; } /// /// 编码 /// [Required(ErrorMessage = "字典值编码不能为空")] public string Code { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// public CommonStatus Status { get; set; } } /// /// /// public class ChageStateDictDataInput : BaseId { /// /// 状态(字典 0正常 1停用 2删除) /// public CommonStatus Status { get; set; } } /// /// /// public class QueryDictDataInput : BaseId { } }