feat:furion rbac搭建
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Dtos
|
||||
{
|
||||
[Serializable]
|
||||
public abstract class EntityDto<TKey> : EntityDto, IEntityDto<TKey>, IEntityDto
|
||||
{
|
||||
//
|
||||
// 摘要:
|
||||
// Id of the entity.
|
||||
public TKey Id { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[DTO: {GetType().Name}] Id = {Id}";
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public abstract class EntityDto : IEntityDto
|
||||
{
|
||||
public override string ToString()
|
||||
{
|
||||
return "[DTO: " + GetType().Name + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user