Added Main
This commit is contained in:
12
noteApi/Dtos/Account/LoginDto.cs
Normal file
12
noteApi/Dtos/Account/LoginDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace noteApi.Dtos.Account
|
||||
{
|
||||
public class LoginDto
|
||||
{
|
||||
[Required]
|
||||
public string Username { get; set; }
|
||||
[Required]
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
9
noteApi/Dtos/Account/NewUserDto.cs
Normal file
9
noteApi/Dtos/Account/NewUserDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace noteApi.Dtos.Account
|
||||
{
|
||||
public class NewUserDto
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Token { get; set; }
|
||||
}
|
||||
}
|
||||
15
noteApi/Dtos/Account/RegisterDto.cs
Normal file
15
noteApi/Dtos/Account/RegisterDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace noteApi.Dtos.Account
|
||||
{
|
||||
public class RegisterDto
|
||||
{
|
||||
[Required]
|
||||
public string? Username { get; set; }
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; }
|
||||
[Required]
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
8
noteApi/Dtos/Note/CreateNoteDto.cs
Normal file
8
noteApi/Dtos/Note/CreateNoteDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace noteApi.Dtos.Note
|
||||
{
|
||||
public class CreateNoteDto
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user