初始化
Some checks failed
CI/CD Pipeline / 测试 (18.x) (push) Has been cancelled
CI/CD Pipeline / 测试 (20.x) (push) Has been cancelled
CI/CD Pipeline / 安全检查 (push) Has been cancelled
CI/CD Pipeline / 部署 (push) Has been cancelled
CI/CD Pipeline / 通知 (push) Has been cancelled

This commit is contained in:
2025-11-03 19:47:36 +08:00
parent 7a04b85667
commit f25b0307db
454 changed files with 37064 additions and 4544 deletions

View File

@@ -0,0 +1,18 @@
namespace HardwarePerformance.Core.Entities
{
/// <summary>
/// 实体基类
/// </summary>
public abstract class BaseEntity
{
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
}

View File

@@ -6,7 +6,7 @@ namespace HardwarePerformance.Core.Entities
/// <summary>
/// 产品类别实体
/// </summary>
public class Category : Infrastructure.Data.BaseEntity
public class Category : BaseEntity
{
public int Id { get; set; }

View File

@@ -6,7 +6,7 @@ namespace HardwarePerformance.Core.Entities
/// <summary>
/// 数据源实体
/// </summary>
public class DataSource : Infrastructure.Data.BaseEntity
public class DataSource : BaseEntity
{
public int Id { get; set; }

View File

@@ -6,7 +6,7 @@ namespace HardwarePerformance.Core.Entities
/// <summary>
/// 性能分数实体
/// </summary>
public class PerformanceScore : Infrastructure.Data.BaseEntity
public class PerformanceScore : BaseEntity
{
public int Id { get; set; }

View File

@@ -6,7 +6,7 @@ namespace HardwarePerformance.Core.Entities
/// <summary>
/// 产品实体
/// </summary>
public class Product : Infrastructure.Data.BaseEntity
public class Product : BaseEntity
{
public int Id { get; set; }

View File

@@ -6,7 +6,7 @@ namespace HardwarePerformance.Core.Entities
/// <summary>
/// 排名历史实体
/// </summary>
public class RankingHistory : Infrastructure.Data.BaseEntity
public class RankingHistory : BaseEntity
{
public int Id { get; set; }

View File

@@ -6,7 +6,7 @@ namespace HardwarePerformance.Core.Entities
/// <summary>
/// 产品规格参数实体
/// </summary>
public class Specification : Infrastructure.Data.BaseEntity
public class Specification : BaseEntity
{
public int Id { get; set; }