first commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.RBAC;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.RBAC.Roles;
|
||||
|
||||
/// <summary>角色权限关联写仓储</summary>
|
||||
public interface IRolePermissionWriteRepository : IDInterface
|
||||
{
|
||||
Task<RolePermission> GetByIdAsync(long id);
|
||||
Task<bool> AssignAsync(RolePermission rolePermission);
|
||||
Task<bool> RemoveAsync(long id);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.RBAC;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.RBAC.Roles;
|
||||
|
||||
/// <summary>角色写仓储(聚合根仓储)</summary>
|
||||
public interface IRoleWriteRepository : IDInterface
|
||||
{
|
||||
Task<Role> GetByIdAsync(long id);
|
||||
Task<bool> AddAsync(Role role);
|
||||
Task<bool> UpdateAsync(Role role);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
Task<bool> ActiveOrDeactive(long id, bool active);
|
||||
}
|
||||
Reference in New Issue
Block a user