main
|
Last change
on this file since b373fea was b373fea, checked in by kikisrbinoska <srbinoskakristina07@…>, 12 days ago |
|
Fixes for authentication and auhtorization\
|
-
Property mode
set to
100644
|
|
File size:
384 bytes
|
| Line | |
|---|
| 1 | using MediatR;
|
|---|
| 2 | using System.ComponentModel.DataAnnotations;
|
|---|
| 3 |
|
|---|
| 4 | namespace ChapterX.Application.Story.Commands
|
|---|
| 5 | {
|
|---|
| 6 | public record AddRequest(
|
|---|
| 7 | bool MatureContent,
|
|---|
| 8 | [Required][MaxLength(500)] string ShortDescription,
|
|---|
| 9 | [MaxLength(2048)] string? Image,
|
|---|
| 10 | [Required] string Content,
|
|---|
| 11 | int UserId,
|
|---|
| 12 | List<string> Genres
|
|---|
| 13 | ) : IRequest<AddResponse>;
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.