mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
16 lines
220 B
TypeScript
16 lines
220 B
TypeScript
|
import { MinLength, IsString } from 'class-validator'
|
||
|
|
||
|
export class LoginBody {
|
||
|
@MinLength(2)
|
||
|
id: string
|
||
|
|
||
|
@MinLength(4)
|
||
|
pass: string
|
||
|
}
|
||
|
|
||
|
export class TokenHeader {
|
||
|
@IsString()
|
||
|
@MinLength(10)
|
||
|
token: string
|
||
|
}
|