14 lines
427 B
C#
14 lines
427 B
C#
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);
|
|
}
|