|
|
@@ -4,6 +4,7 @@ import { IsNotEmpty } from 'class-validator';
|
|
|
export class CreateTokenRequest {
|
|
|
@ApiProperty({
|
|
|
required: true,
|
|
|
+ example: 'admin',
|
|
|
})
|
|
|
@IsNotEmpty({ message: '用户名不能为空' })
|
|
|
username: string;
|
|
|
@@ -11,6 +12,7 @@ export class CreateTokenRequest {
|
|
|
@IsNotEmpty({ message: '密码不能为空' })
|
|
|
@ApiProperty({
|
|
|
required: true,
|
|
|
+ example: 'admin123',
|
|
|
})
|
|
|
password: string;
|
|
|
}
|