first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.RBAC;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.RBAC.Users;
|
||||
|
||||
/// <summary>
|
||||
/// 用户角色关联写仓储:不把 AssignRole 放在 IUserWriteRepository(避免污染聚合仓储),
|
||||
/// 而是定义独立的细粒度接口,应用层依赖此抽象,基础设施层实现。
|
||||
/// </summary>
|
||||
public interface IUserRoleWriteRepository : IDInterface
|
||||
{
|
||||
Task<bool> AssignAsync(UserRole userRole);
|
||||
|
||||
Task<bool> RemoveAsync(long userid, long roleId);
|
||||
}
|
||||
Reference in New Issue
Block a user