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>
|
2024-10-22 12:20:53 +08:00
|
|
|
|
/// 校验电话验证码,需要与电话号码绑定
|
2024-10-19 16:17:26 +08:00
|
|
|
|
/// </summary>
|
2024-10-22 12:20:53 +08:00
|
|
|
|
Task ValidationPhoneCaptchaAsync(ValidationPhoneTypeEnum validationPhoneType, long phone,
|
|
|
|
|
|
string code);
|
2024-10-21 23:35:10 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-22 12:20:53 +08:00
|
|
|
|
/// 临时注册
|
|
|
|
|
|
/// 不需要验证,为了给第三方使用,例如微信小程序,后续可通过绑定操作,进行账号合并
|
2024-10-21 23:35:10 +08:00
|
|
|
|
/// </summary>
|
2024-10-22 12:20:53 +08:00
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
|
Task PostTempRegisterAsync(RegisterDto input);
|
2023-12-11 09:55:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|