Skip to content
GitLab
Explore
Sign in
Changes
Page history
fix
authored
Jul 29, 2019
by
L4168
Show whitespace changes
Inline
Side-by-side
src/dtos.md
0 → 100644
View page @
35dd2d16
## game.dto.ts
### newGameDTO
```
typescript
{
export
class
newGameDTO
{
@
IsString
()
@
IsNotEmpty
()
@
Length
(
3
,
30
)
name
:
string
;
@
IsString
()
@
IsNotEmpty
()
@
Length
(
1
,
255
)
desc
:
string
;
@
ValidateNested
()
@
Type
(()
=>
CenterDTO
)
center
:
CenterDTO
;
@
IsDateString
()
@
IsNotEmpty
()
startdate
:
string
;
@
IsDateString
()
@
IsNotEmpty
()
enddate
:
string
;
@
Length
(
0
,
65
)
image
:
string
;
@
Allow
()
map
?:
JSON
;
}
}
```