2024-03-20 17:52:59 +08:00
|
|
|
|
using Volo.Abp.Application.Services;
|
|
|
|
|
|
using Yi.Framework.Rbac.Application.Contracts.Dtos.Account;
|
2024-01-19 17:45:11 +08:00
|
|
|
|
using Yi.Framework.Rbac.Domain.Shared.Dtos;
|
2024-10-19 16:17:26 +08:00
|
|
|
|
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
2024-01-17 16:31:01 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Rbac.Application.Contracts.IServices
|
2023-12-11 09:55:12 +08:00
|
|
|
|
{
|
2024-03-20 17:52:59 +08:00
|
|
|
|
public interface IAccountService : IApplicationService
|
2023-12-11 09:55:12 +08:00
|
|
|
|
{
|
2024-04-29 17:50:51 +08:00
|
|
|
|
Task<UserRoleMenuDto> GetAsync();
|
2024-03-20 17:52:59 +08:00
|
|
|
|
Task<CaptchaImageDto> GetCaptchaImageAsync();
|
2024-10-19 16:17:26 +08:00
|
|
|
|
Task<LoginOutputDto> PostLoginAsync(LoginInputVo input);
|
2024-04-29 17:50:51 +08:00
|
|
|
|
Task PostRegisterAsync(RegisterDto input);
|
|
|
|
|
|
Task<bool> RestPasswordAsync(Guid userId, RestPasswordDto input);
|
2024-10-19 16:17:26 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 提供其他服务使用,根据用户id,直接返回token
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<LoginOutputDto> PostLoginAsync(Guid userId);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据信息查询用户,可能为空,代表该用户不存在或禁用
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="userName"></param>
|
|
|
|
|
|
/// <param name="phone"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<UserRoleMenuDto?> GetAsync(string? userName,long? phone);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 手机验证码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<object> PostCaptchaPhoneAsync(ValidationPhoneTypeEnum validationPhoneType,
|
|
|
|
|
|
PhoneCaptchaImageDto input);
|
2023-12-11 09:55:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|