using F9WebAiTest.Domain.Entities.SYS.Departments;
namespace F9WebAiTest.Domain.Interfaces.SYS.Departments;
/// 部门写仓储(聚合根仓储)
public interface IDepartmentWriteRepository : IDInterface
{
/// 返回聚合根
Task GetByIdAsync(long id, CancellationToken cancellationToken);
Task AddAsync(Department dep);
Task UpdateAsync(Department dep);
Task SoftDeleteAsync(long id);
Task ActiveOrDeactive(long id, bool active);
}