You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.2 KiB
71 lines
2.2 KiB
using System;
|
|
using System.Threading.Tasks;
|
|
using BaseService.BaseData.Permissions.Dto;
|
|
using BaseService.RelationData.Dto;
|
|
using Volo.Abp.Application.Dtos;
|
|
using Volo.Abp.Application.Services;
|
|
using Volo.Abp.Identity;
|
|
|
|
namespace BaseService.Systems.UserManagement
|
|
{
|
|
public interface IUserAppService : IApplicationService
|
|
{
|
|
/// <summary>
|
|
/// 根据ID获取单条信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
Task<IdentityUserUpdateDto> GetAsync(Guid id);
|
|
|
|
/// <summary>
|
|
/// 获取当前登录用户信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<IdentityUserDto> GetCurrentUserAsync();
|
|
|
|
/// <summary>
|
|
/// 创建用户
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
Task<IdentityUserDto> CreateAsync(IdentityUserCreateDto input);
|
|
|
|
/// <summary>
|
|
/// 更新用户信息
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
Task<IdentityUserDto> UpdateAsync(Guid id, IdentityUserUpdateDto input);
|
|
|
|
/// <summary>
|
|
/// 获取所有用户信息
|
|
/// </summary>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
Task<PagedResultDto<IdentityUserDto>> GetAll(GetIdentityUsersInput input);
|
|
|
|
/// <summary>
|
|
/// 根据分支ID获取用户信息
|
|
/// </summary>
|
|
/// <param name="userId"></param>
|
|
/// <returns></returns>
|
|
Task<ListResultDto<BranchRoleDto>> GetUserBranchesAsync(Guid userId);
|
|
|
|
/// <summary>
|
|
/// 获取权限列表信息
|
|
/// </summary>
|
|
/// <param name="branchId"></param>
|
|
/// <returns></returns>
|
|
Task<ApplicationAuthes> GetAuthConfigAsync(Guid branchId);
|
|
|
|
/// <summary>
|
|
/// 重置当前登录用户的密码
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <param name="input"></param>
|
|
/// <returns></returns>
|
|
//Task<IdentityUserDto> ResetPasswordCurrentUser(Guid id, IdentityUserCreateDto input);
|
|
Task<IdentityUserDto> ResetPasswordAsync(Guid id);
|
|
}
|
|
}
|
|
|