25 lines
324 B
TypeScript
25 lines
324 B
TypeScript
import { IsNotEmpty } from 'class-validator';
|
|
|
|
export class CreateSupplierDto {
|
|
@IsNotEmpty()
|
|
name: string;
|
|
|
|
@IsNotEmpty()
|
|
code: string;
|
|
|
|
@IsNotEmpty()
|
|
url: string;
|
|
|
|
@IsNotEmpty()
|
|
irs_id: string;
|
|
|
|
@IsNotEmpty()
|
|
irs_pin: string;
|
|
|
|
@IsNotEmpty()
|
|
irs_user: string;
|
|
|
|
@IsNotEmpty()
|
|
irs_pass: string;
|
|
}
|