implmentação swagger no modulo orders-payment
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
import { IsString, IsNotEmpty } from 'class-validator';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class LoginDto {
|
||||
@ApiProperty({
|
||||
example: 'joelson.r',
|
||||
description: 'Usuário de login',
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
username: string;
|
||||
|
||||
@ApiProperty({
|
||||
example: '1010',
|
||||
description: 'Senha do usuário',
|
||||
})
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
password: string;
|
||||
|
||||
Reference in New Issue
Block a user