File

src/modules/user/dtos/user-partner.dto.ts

Extends

AbstractDto

Index

Properties

Constructor

constructor(partner: PartnerEntity)
Parameters :
Name Type Optional
partner PartnerEntity No

Properties

Readonly Optional email
Type : string
Decorators :
@ApiProperty()
Readonly name
Type : string
Decorators :
@ApiProperty()
Readonly uuid
Type : string
Inherited from AbstractDto
Defined in AbstractDto:4
import { ApiProperty } from '@nestjs/swagger';
import { AbstractDto } from 'common/dtos';
import { PartnerEntity } from 'modules/partner/entities';

export class UserPartnerDto extends AbstractDto {

  @ApiProperty()
  readonly name: string;

  @ApiProperty()
  readonly email?: string;

  constructor(partner: PartnerEntity) {
    super(partner);
  }
}

result-matching ""

    No results matching ""