feat: finalize core modules and gateway

This commit is contained in:
2025-11-23 18:53:12 +08:00
parent 429d4fb747
commit ae273e510a
115 changed files with 4695 additions and 223 deletions

View File

@@ -1,9 +1,9 @@
namespace TakeoutSaaS.Shared.Abstractions.Entities;
/// <summary>
/// 审计字段接口:提供创建时间和更新时间字段
/// 审计字段接口:提供创建、更新、删除时间与操作者标识
/// </summary>
public interface IAuditableEntity
public interface IAuditableEntity : ISoftDeleteEntity
{
/// <summary>
/// 创建时间UTC
@@ -14,5 +14,24 @@ public interface IAuditableEntity
/// 更新时间UTC未更新时为 null。
/// </summary>
DateTime? UpdatedAt { get; set; }
}
/// <summary>
/// 删除时间UTC未删除时为 null。
/// </summary>
new DateTime? DeletedAt { get; set; }
/// <summary>
/// 创建人用户标识,匿名或系统操作时为 null。
/// </summary>
Guid? CreatedBy { get; set; }
/// <summary>
/// 最后更新人用户标识,匿名或系统操作时为 null。
/// </summary>
Guid? UpdatedBy { get; set; }
/// <summary>
/// 删除人用户标识(软删除),未删除时为 null。
/// </summary>
Guid? DeletedBy { get; set; }
}