added service with excel
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { ServiceSkill } from '../entities/service-skill.entity';
|
||||
|
||||
export class ImportServiceSkillRowErrorDto {
|
||||
@ApiProperty({ example: 3 })
|
||||
row: number;
|
||||
|
||||
@ApiProperty({ example: 'عنوان مهارت الزامی است' })
|
||||
message: string;
|
||||
}
|
||||
|
||||
export class ImportServiceSkillsResultDto {
|
||||
@ApiProperty({ example: 5 })
|
||||
created: number;
|
||||
|
||||
@ApiProperty({ example: 1 })
|
||||
failed: number;
|
||||
|
||||
@ApiProperty({ type: [ServiceSkill] })
|
||||
skills: ServiceSkill[];
|
||||
|
||||
@ApiProperty({ type: [ImportServiceSkillRowErrorDto] })
|
||||
errors: ImportServiceSkillRowErrorDto[];
|
||||
}
|
||||
Reference in New Issue
Block a user