namespace Admin.NET.Core.Service; public class TenantInput : BaseIdInput { /// /// 状态 /// public StatusEnum Status { get; set; } } public class PageTenantInput : BasePageInput { /// /// 名称 /// public virtual string Name { get; set; } /// /// 电话 /// public virtual string Phone { get; set; } } public class AddTenantInput : TenantOutput { /// /// 租户名称 /// [Required(ErrorMessage = "租户名称不能为空"), MinLength(2, ErrorMessage = "租户名称不能少于2个字符")] public override string Name { get; set; } /// /// 管理员名称 /// [Required(ErrorMessage = "管理员名称不能为空"), MinLength(3, ErrorMessage = "管理员名称不能少于3个字符")] public override string AdminName { get; set; } } public class UpdateTenantInput : AddTenantInput { } public class DeleteTenantInput : BaseIdInput { } public class TenantUserInput { /// /// 用户Id /// public long UserId { get; set; } }