- POST /v1/in/auth/signup 엔드포인트 추가 (AllowAnonymous) - SignupRequestDto/SignupResponseDto 생성 - AuthService.SignupAsync 구현 (이메일 중복검사, AdminCode 생성, BCrypt 해싱) - ApiResponse<T>.Success(data, msg) 오버로드 추가
13 lines
439 B
C#
13 lines
439 B
C#
using SPMS.Application.DTOs.Auth;
|
|
|
|
namespace SPMS.Application.Interfaces;
|
|
|
|
public interface IAuthService
|
|
{
|
|
Task<SignupResponseDto> SignupAsync(SignupRequestDto request);
|
|
Task<LoginResponseDto> LoginAsync(LoginRequestDto request);
|
|
Task<TokenRefreshResponseDto> RefreshTokenAsync(TokenRefreshRequestDto request);
|
|
Task LogoutAsync(long adminId);
|
|
Task ChangePasswordAsync(long adminId, ChangePasswordRequestDto request);
|
|
}
|