Create FileDTO

This commit is contained in:
Thomas Miceli
2023-03-18 23:23:23 +01:00
parent 527be16183
commit b56e02e3ed
3 changed files with 15 additions and 11 deletions

View File

@ -8,9 +8,9 @@ import (
)
type File struct {
Filename string `validate:"excludes=\x2f,excludes=\x5c,max=50"`
OldFilename string `validate:"excludes=\x2f,excludes=\x5c,max=50"`
Content string `validate:"required"`
Filename string
OldFilename string
Content string
Truncated bool
IsCreated bool
IsDeleted bool