This commit is contained in:
路 范
2021-09-24 14:33:10 +08:00
parent 0e82fb3156
commit c03092bc0c
432 changed files with 57806 additions and 4 deletions

View File

@@ -0,0 +1,35 @@
using System.ComponentModel.DataAnnotations;
namespace Ewide.Application
{
// 继承PageInputBase,可以直接使用一些通用的查询和分页字段
public class DtoPageInput : Core.PageInputBase {}
// 可定义一个主键Dto
public class DtoKeyInput
{
public virtual string Id { get; set; }
}
// 可定义一个必传主键的Dto
public class DtoKeyRequiredInput : DtoKeyInput
{
[Required]
public override string Id { get; set; }
}
public class DtoAddInput
{
[MaxLength(100)]
[Required]
public string RequiredString { get; set; }
}
public class DtoUpdateInput : DtoAddInput
{
[Required]
public override string Id { get; set; }
}
public class DtoDeleteInput: DtoKeyInput {}
}