You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
6 days ago
|
namespace Admin.NET.Core.Service;
|
||
|
|
||
|
public class TenantInput : BaseIdInput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 状态
|
||
|
/// </summary>
|
||
|
public StatusEnum Status { get; set; }
|
||
|
}
|
||
|
|
||
|
public class PageTenantInput : BasePageInput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 名称
|
||
|
/// </summary>
|
||
|
public virtual string Name { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 电话
|
||
|
/// </summary>
|
||
|
public virtual string Phone { get; set; }
|
||
|
}
|
||
|
|
||
|
public class AddTenantInput : TenantOutput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 租户名称
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "租户名称不能为空"), MinLength(2, ErrorMessage = "租户名称不能少于2个字符")]
|
||
|
public override string Name { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 管理员名称
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "管理员名称不能为空"), MinLength(3, ErrorMessage = "管理员名称不能少于3个字符")]
|
||
|
public override string AdminName { get; set; }
|
||
|
}
|
||
|
|
||
|
public class UpdateTenantInput : AddTenantInput
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public class DeleteTenantInput : BaseIdInput
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public class TenantUserInput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 用户Id
|
||
|
/// </summary>
|
||
|
public long UserId { get; set; }
|
||
|
}
|