在定义用户能力时,我们将能力定义为
internal class Table<TEntity> : ITable where TEntity : class
{
internal string Name {get; set;}
internal DbSet<TEntity> Source {get; set;}
internal DbSet<TEntity> Destination {get; set;}
string ITable.Name => Name;
IQueryable ITable.Source => Source;
IQueryable ITable.Destination => Destination;
Type ITable.Type => typeof(T);
internal Table(string name, DbSet<TEntity> source, DbSet<TEntity> destination)
{
Name = name;
Source = source;
Destination = destination;
}
}
其中can :manage, Post, user_id: user.id
是模型,但是当Post模型是另一个微服务时,我将如何定义微服务消费者应用程序中的功能