Add one long hierarchical method, change some return codes
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace T120B165_ImgBoard.Dtos.Comment;
|
||||
|
||||
public record CreateCommentDto(string Text);
|
||||
public record EditCommentDto(string Text);
|
||||
public record CreateCommentDto([Required] string Text);
|
||||
public record EditCommentDto([Required] string Text);
|
||||
@@ -1,3 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace T120B165_ImgBoard.Dtos;
|
||||
|
||||
public record LoginDto(string Email, string Password);
|
||||
public record LoginDto([Required] string Email, [Required] string Password);
|
||||
@@ -3,8 +3,11 @@ using System.ComponentModel.DataAnnotations;
|
||||
namespace T120B165_ImgBoard.Dtos;
|
||||
|
||||
public record RegisterDto(
|
||||
[Required]
|
||||
string UserName,
|
||||
[EmailAddress]
|
||||
[Required]
|
||||
string Email,
|
||||
[Required]
|
||||
string Password
|
||||
);
|
||||
Reference in New Issue
Block a user