feat: 添加多租户界面及种子数据

This commit is contained in:
橙子
2024-02-07 21:35:24 +08:00
parent 44b13acc61
commit 419cadfe1d
12 changed files with 555 additions and 31 deletions

View File

@@ -1,12 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos
{
public class TenantCreateInput
{
public string Name { get; set; }
public string TenantConnectionString { get; set; }
public SqlSugar.DbType DbType { get; set; }
}
}

View File

@@ -1,12 +1,20 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Ddd.Application.Contracts;
namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos
{
public class TenantGetListInput
public class TenantGetListInput: PagedAllResultRequestDto
{
public string? Name { get; set; }
//public int? EntityVersion { get; set; }
//public string? TenantConnectionString { get; set; }
//public DbType? DbType { get; set; }
}
}

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -9,5 +10,12 @@ namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos
{
public class TenantGetListOutputDto:EntityDto<Guid>
{
public string Name { get; set; }
public int EntityVersion { get; set; }
public string TenantConnectionString { get; set; }
public SqlSugar.DbType DbType { get; set; }
public DateTime CreationTime { get; set; }
}
}

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -9,5 +10,13 @@ namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos
{
public class TenantGetOutputDto:EntityDto<Guid>
{
public string Name { get; set; }
public int EntityVersion { get; set; }
public string TenantConnectionString { get; set; }
public SqlSugar.DbType DbType { get; set; }
public DateTime CreationTime { get; set; }
}
}

View File

@@ -1,12 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace Yi.Framework.TenantManagement.Application.Contracts.Dtos
{
public class TenantUpdateInput
{
public string? Name { get; set; }
public int? EntityVersion { get; set; }
public string? TenantConnectionString { get; set; }
public SqlSugar.DbType? DbType { get; set; }
}
}