namespace SafeCampus.Core; /// /// 主键Id输入参数 /// public class BaseIdInput { /// /// 主键Id /// [IdNotNull(ErrorMessage = "Id不能为空")] [DataValidation(ValidationTypes.Numeric)] public virtual long Id { get; set; } } public class BaseIdListInput { /// /// 主键Id列表 /// [IdsNotNull(ErrorMessage = "IdList不能为空")] public List Ids { get; set; } = new List(); } /// /// Id列表输入 /// public class IdListInput { [Required(ErrorMessage = "IdList不能为空")] public List? IdList { get; set; } }