feat: implement consumer info update and password change functionality with DTOs
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { ApiProperty } from '@nestjs/swagger'
|
||||
import { IsString } from 'class-validator'
|
||||
|
||||
export class UpdateConsumerInfoDto {
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
first_name: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
last_name: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
mobile_number: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
national_code: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
company_name: string
|
||||
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
registration_code: string
|
||||
}
|
||||
Reference in New Issue
Block a user