Files
psp_api/src/modules/admin/providers/dto/provider.dto.ts
T

24 lines
489 B
TypeScript
Raw Normal View History

2026-03-16 00:33:40 +03:30
import { ApiProperty, PartialType } from '@nestjs/swagger'
import { IsOptional, IsString } from 'class-validator'
export class CreateProviderDto {
@IsString()
2026-03-16 00:33:40 +03:30
@ApiProperty({ required: true })
name: string
@IsOptional()
@IsString()
2026-03-11 20:42:34 +03:30
@ApiProperty()
2026-03-16 00:33:40 +03:30
code: string
@IsString()
@ApiProperty({ required: true })
username: string
@IsString()
@ApiProperty({ required: true })
password: string
}
2026-03-16 00:33:40 +03:30
export class UpdateProviderDto extends PartialType(CreateProviderDto) {}