-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create method for finding a user... add new items to the seed
- Loading branch information
1 parent
65ee888
commit 41e6de7
Showing
26 changed files
with
1,315 additions
and
391 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using crafts_api.Entities.Enum; | ||
|
||
namespace crafts_api.Entities.Dto; | ||
|
||
public class UserDto | ||
{ | ||
public Guid PublicId { get; set; } | ||
public string Username { get; set; } | ||
public string FirstName { get; set; } | ||
public string LastName { get; set; } | ||
public string Email { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public DateTime UpdatedAt { get; set; } | ||
public Role Role { get; set; } | ||
public string ProfilePicture { get; set; } | ||
public string Country { get; set; } | ||
public string City { get; set; } | ||
public string? Address { get; set; } | ||
public string Street { get; set; } | ||
public string Number { get; set; } | ||
public string PostalCode { get; set; } | ||
public string PhoneNumber { get; set; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace crafts_api.Entities.Models | ||
{ | ||
public class UpdateUserProfileRequest | ||
{ | ||
//username | ||
public string Username { get; set; } = string.Empty; | ||
//first_name | ||
public string FirstName { get; set; } = string.Empty; | ||
//last_name | ||
public string LastName { get; set; } = string.Empty; | ||
public string Email { get; set; } = string.Empty; | ||
//profile_picture | ||
public string ProfilePicture { get; set; } = string.Empty; | ||
//country | ||
public string Country { get; set; } = string.Empty; | ||
//city | ||
public string City { get; set; } = string.Empty; | ||
//address | ||
public string Address { get; set; } = string.Empty; | ||
//street | ||
public string Street { get; set; } = string.Empty; | ||
//number | ||
public string Number { get; set; } = string.Empty; | ||
//postal_code | ||
public string PostalCode { get; set; } = string.Empty; | ||
//phone_number | ||
public string PhoneNumber { get; set; } = string.Empty; | ||
|
||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using crafts_api.Entities.Dto; | ||
using crafts_api.Entities.Models; | ||
|
||
namespace crafts_api.Interfaces; | ||
|
||
public interface IUserService | ||
{ | ||
public Task<UserDto> GetUser(Guid publicId); | ||
} |
Oops, something went wrong.