using System.ComponentModel.DataAnnotations; namespace GDZZ.Core.Service; /// /// 租户参数 /// public class TenantInput : PageInputBase { /// /// 公司名称 /// public virtual string Name { get; set; } /// /// 管理员名称 /// public virtual string AdminName { get; set; } /// /// 主机 /// public virtual string Host { get; set; } /// /// 电子邮箱 /// public virtual string Email { get; set; } /// /// 电话号码 /// public string Phone { get; set; } /// /// 模式 /// public string Schema { get; set; } /// /// 数据库连接 /// public virtual string Connection { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 创建时间 /// public string CreatedTime { get; set; } /// /// 招聘费用 /// public decimal PushFee { get; set; } } public class AddTenantInput : TenantInput { /// /// 公司名称 /// [Required(ErrorMessage = "公司名称")] public override string Name { get; set; } /// /// 管理员名称 /// [Required(ErrorMessage = "管理员名称")] public override string AdminName { get; set; } /// /// 主机名称 /// public override string Host { get; set; } /// /// 数据库连接 /// public override string Connection { get; set; } /// /// 电子邮箱 /// [Required(ErrorMessage = "电子邮箱")] public override string Email { get; set; } } public class DeleteTenantInput { /// /// 租户Id /// [Required(ErrorMessage = "租户Id不能为空")] public long Id { get; set; } } public class UpdateTenantInput : TenantInput { /// /// 租户Id /// [Required(ErrorMessage = "租户Id不能为空")] public long Id { get; set; } } public class QueryTenantInput : DeleteTenantInput { }