Added Main

This commit is contained in:
2025-02-08 14:01:15 +01:00
parent d14f828514
commit 621df92b27
187 changed files with 8574 additions and 0 deletions

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@@ -0,0 +1,8 @@
namespace noteApi.Dtos.Note
{
public class CreateNoteDto
{
public string Title { get; set; }
public string Content { get; set; }
}
}