Add authentication and authorization (#21)
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
@@ -6,9 +6,9 @@ public class GameDetailDto
|
||||
public string? Title { get; set; }
|
||||
public DateTime? ReleaseDate { get; set; }
|
||||
public DateTime? CreationDate { get; set; }
|
||||
public int CreationUserId { get; set; }
|
||||
public string CreationUserId { get; set; } = string.Empty;
|
||||
public DateTime? ModificationDate { get; set; }
|
||||
public int? ModificationUserId { get; set; }
|
||||
public string? ModificationUserId { get; set; }
|
||||
public double? StorageSpace { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public int Interest { get; set; } = 3;
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
using GameIdeas.Shared.Enum;
|
||||
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class LoginDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public Role? Role { get; set; }
|
||||
}
|
||||
7
src/GameIdeas/GameIdeas.Shared/Dto/TokenDto.cs
Normal file
7
src/GameIdeas/GameIdeas.Shared/Dto/TokenDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class TokenDto
|
||||
{
|
||||
public string? Token { get; set; }
|
||||
public DateTime? Expiration { get; set; }
|
||||
}
|
||||
@@ -7,5 +7,5 @@ public class UserDto
|
||||
public int? Id { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public Role? Role { get; set; }
|
||||
public string? RoleId { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user