using F9WebAiTest.Domain.Entities.SYS.RBAC;
namespace F9WebAiTest.Domain.Interfaces.SYS.RBAC.Users;
/// 用户写仓储(聚合根仓储)
public interface IUserWriteRepository : IDInterface
{
/// 返回聚合根
Task GetByIdAsync(long id);
Task AddAsync(User user);
Task UpdateAsync(User user);
Task SoftDeleteAsync(long id);
Task ActiveOrDeactive(long id, bool active);
Task UpdatePassworkdAsync(long id, string passwordHash);
Task UpdateLastLoginAtAsync(long id, DateTime dt);
}