初始化
Some checks failed
Some checks failed
This commit is contained in:
18
backend/HardwarePerformance.Core/Entities/BaseEntity.cs
Normal file
18
backend/HardwarePerformance.Core/Entities/BaseEntity.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user