feat: 扩展领域模型与配置

This commit is contained in:
贺爱泽
2025-12-01 13:26:05 +08:00
parent a08804658b
commit 5ddad07658
148 changed files with 8519 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
using TakeoutSaaS.Shared.Abstractions.Entities;
namespace TakeoutSaaS.Domain.Analytics.Entities;
/// <summary>
/// 指标快照,用于大盘展示。
/// </summary>
public sealed class MetricSnapshot : MultiTenantEntityBase
{
/// <summary>
/// 指标定义 ID。
/// </summary>
public Guid MetricDefinitionId { get; set; }
/// <summary>
/// 维度键JSON
/// </summary>
public string DimensionKey { get; set; } = string.Empty;
/// <summary>
/// 统计时间窗口开始。
/// </summary>
public DateTime WindowStart { get; set; }
/// <summary>
/// 统计时间窗口结束。
/// </summary>
public DateTime WindowEnd { get; set; }
/// <summary>
/// 数值。
/// </summary>
public decimal Value { get; set; }
}