using Magic.Core; using System; using System.ComponentModel.DataAnnotations; namespace Magic.Application { /// /// 测试输入参数 /// public class TestInput : PageInputBase { /// /// 租户Id /// public virtual long TenantId { get; set; } } public class AddTestInput : TestInput { } public class DeleteTestInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } } public class UpdateTestInput : TestInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } } public class QueryeTestInput : DeleteTestInput { } }