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