first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.Departments;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.Departments;
|
||||
|
||||
/// <summary>部门用户关联写仓储</summary>
|
||||
public interface IDepartmentUserRepository : IDInterface
|
||||
{
|
||||
Task<bool> AssignAsync(DepartmentUser depUser);
|
||||
|
||||
Task<bool> RemoveAsync(long depId, long userId);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using F9WebAiTest.Domain.Entities.SYS.Departments;
|
||||
|
||||
namespace F9WebAiTest.Domain.Interfaces.SYS.Departments;
|
||||
|
||||
/// <summary>部门写仓储(聚合根仓储)</summary>
|
||||
public interface IDepartmentWriteRepository : IDInterface
|
||||
{
|
||||
/// <summary>返回聚合根</summary>
|
||||
Task<Department> GetByIdAsync(long id, CancellationToken cancellationToken);
|
||||
|
||||
Task<bool> AddAsync(Department dep);
|
||||
Task<bool> UpdateAsync(Department dep);
|
||||
Task<bool> SoftDeleteAsync(long id);
|
||||
Task<bool> ActiveOrDeactive(long id, bool active);
|
||||
}
|
||||
Reference in New Issue
Block a user