using System.ComponentModel.DataAnnotations; namespace Magic.Core.Service; /// /// 参数配置 /// public class ConfigInput : PageInputBase { /// /// 名称 /// public virtual string Name { get; set; } /// /// 编码 /// public virtual string Code { get; set; } /// /// 属性值 /// public virtual string Value { get; set; } /// /// 是否是系统参数(Y-是,N-否) /// public virtual string SysFlag { get; set; } /// /// 备注 /// public virtual string Remark { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// public virtual int Status { get; set; } /// /// 常量所属分类的编码,来自于“常量的分类”字典 /// public virtual string GroupCode { get; set; } } public class AddConfigInput : ConfigInput { /// /// 名称 /// [Required(ErrorMessage = "参数名称不能为空")] public override string Name { get; set; } /// /// 编码 /// [Required(ErrorMessage = "参数编码不能为空")] public override string Code { get; set; } } public class DeleteConfigInput { /// /// 应用Id /// [Required(ErrorMessage = "参数Id不能为空")] public long Id { get; set; } } public class UpdateConfigInput : AddConfigInput { /// /// 应用Id /// [Required(ErrorMessage = "应用Id不能为空")] public long Id { get; set; } } public class QueryConfigInput : DeleteConfigInput { }