-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add error handling & set signature conventions to services
- Loading branch information
Showing
9 changed files
with
187 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using Application.DTOs; | ||
using Application.DTOs.Identity.ChangeRole; | ||
using Application.DTOs.Identity.CreateUser; | ||
using Application.DTOs.Identity.GetUser; | ||
using Application.DTOs.Identity.LoginUser; | ||
using Application.DTOs.User; | ||
|
||
namespace Application.Interfaces.Services; | ||
|
||
public interface IUserService | ||
{ | ||
Task<Result<CreateUserResponse>> SignUpUser(CreateUserRequest createIdentityDto); | ||
Task<Result<CreateUserResponse>> SignUp(CreateUserRequest createIdentityDto); | ||
Task<Result<LoginUserResponse>> Login(LoginUserRequest loginDto); | ||
Task<Result> ChangeRole(ChangeRoleRequest changeRoleRequest); | ||
Task<List<GetUserResponse>> GetUsersAsync(); | ||
Task<Result<List<GetUserResponse>>> GetAllUsersAsync(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.