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