namespace MiaoYu.Shared.Admin.ApplicationServices;
///
/// 当前登录账户服务
///
public interface IAccountService : IScopedDependency
{
///
/// 获取账户信息
///
///
AccountContext GetAccountContext();
///
/// 获取账户信息
///
AccountContext AccountContext => default;
///
/// 检查账户密码信息
///
///
/// 账户 id
Task LoginAsync(AuthUserFormDto authUserFormDto);
///
/// 是否刷新 token
///
///
bool IsRefreshToken();
///
/// 刷新 token
///
///
string RefreshToken();
///
/// 是否过期
///
///
bool IsExpire();
///
/// 验证 token
///
public bool IsValidate => default;
///
/// 修改密码
///
///
///
///
Task ChangePasswordAsync(string oldPassword, string newPassword);
///
/// 修改用户信息
///
///
///
Task ChangeUserAsync(SysUser form);
///
/// 根据账户信息缓存
///
///
///
AccountContext SetCacheByAccountContext(AccountContext accountInfo);
///
/// 获取缓存中的账户信息
///
///
///
AccountContext GetCacheAccountContextById(string id);
///
/// 删除缓存账户信息 根据id
///
///
///
bool DeleteCacheAccountContextById(string id);
}