Files
2026-10-08 10:43:59 +08:00

16 lines
538 B
C#

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);
}