1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace Jiaowu.Api.Domain.Common;
|
||||
|
||||
public abstract class EntityBase
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public abstract class CatalogEntity : EntityBase
|
||||
{
|
||||
public required string Code { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public bool IsEnabled { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user