Blame view

Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/IAccountManager.cs 856 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using Volo.Abp.Domain.Services;
  using Yi.Framework.Rbac.Domain.Entities;
  using Yi.Framework.Rbac.Domain.Shared.Dtos;
  
  namespace Yi.Framework.Rbac.Domain.Managers
  {
      public interface IAccountManager : IDomainService
      {
          string CreateRefreshToken(Guid userId);
          Task<string> GetTokenByUserIdAsync(Guid userId,Action<UserRoleMenuDto>? getUserInfo=null);
          Task LoginValidationAsync(string userName, string password, Action<UserAggregateRoot>? userAction = null);
          Task RegisterAsync(string userName, string password, long? phone,string? nick);
          Task<bool> RestPasswordAsync(Guid userId, string password);
          Task UpdatePasswordAsync(Guid userId, string newPassword, string oldPassword);
      }
  }