init to partner module

This commit is contained in:
2026-04-13 15:47:59 +03:30
parent 388aa25de4
commit 59da9585c4
21 changed files with 553 additions and 12 deletions
@@ -0,0 +1,24 @@
import { ApiProperty, PartialType } from '@nestjs/swagger'
import { IsEnum, IsOptional, IsString } from 'class-validator'
import { AccountStatus, PartnerRole } from 'generated/prisma/enums'
export class CreatePartnerAccountDto {
@IsString()
@ApiProperty({ required: true })
username: string
@IsString()
@ApiProperty({ required: true })
password: string
@IsEnum(PartnerRole)
@ApiProperty({ required: true, enum: PartnerRole })
role: PartnerRole
}
export class UpdateAccountDto extends PartialType(CreatePartnerAccountDto) {
@IsOptional()
@IsEnum(AccountStatus)
@ApiProperty({ enum: AccountStatus })
status?: AccountStatus
}