This commit is contained in:
cjd
2025-11-04 21:09:16 +08:00
parent 8260e293c7
commit bb90a020dc
592 changed files with 61749 additions and 27 deletions

View File

@@ -0,0 +1,24 @@
using System;
namespace DouyinApi.Model.Tenants;
/// <summary>
/// 标识 多租户 的业务表 <br/>
/// 默认设置是多库 <br/>
/// 公共表无需区分 直接使用主库 各自业务在各自库中 <br/>
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class MultiTenantAttribute : Attribute
{
public MultiTenantAttribute()
{
}
public MultiTenantAttribute(TenantTypeEnum tenantType)
{
TenantType = tenantType;
}
public TenantTypeEnum TenantType { get; set; } = TenantTypeEnum.Db;
}