add sub title
This commit is contained in:
@@ -99,6 +99,7 @@ export class BusinessRegistrationRequestsService {
|
||||
title: dto.title.trim(),
|
||||
slug,
|
||||
categoryId: dto.categoryId,
|
||||
subtitle: dto.subtitle?.trim() ?? null,
|
||||
description: dto.description?.trim() ?? null,
|
||||
contactPhone: dto.contactPhone?.trim() ?? null,
|
||||
address: dto.address?.trim() ?? null,
|
||||
@@ -167,6 +168,7 @@ export class BusinessRegistrationRequestsService {
|
||||
title: request.title,
|
||||
slug: request.slug,
|
||||
categoryId: request.categoryId,
|
||||
subtitle: request.subtitle,
|
||||
description: request.description,
|
||||
contactPhone: request.contactPhone,
|
||||
address: request.address,
|
||||
|
||||
@@ -28,6 +28,12 @@ export class CreateBusinessRegistrationDto {
|
||||
})
|
||||
slug?: string;
|
||||
|
||||
@ApiPropertyOptional({ example: 'تمیزی که میدرخشد' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(150)
|
||||
subtitle?: string;
|
||||
|
||||
@ApiPropertyOptional()
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
@@ -110,6 +110,7 @@ export class BusinessesService {
|
||||
title: payload.title,
|
||||
slug,
|
||||
categoryId: payload.categoryId,
|
||||
subtitle: payload.subtitle ?? null,
|
||||
description: payload.description ?? null,
|
||||
contactPhone: payload.contactPhone ?? null,
|
||||
address: payload.address ?? null,
|
||||
|
||||
@@ -29,6 +29,12 @@ export class CreateBusinessDto {
|
||||
@IsUUID()
|
||||
categoryId!: string;
|
||||
|
||||
@ApiPropertyOptional({ example: 'تمیزی که میدرخشد' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(150)
|
||||
subtitle?: string;
|
||||
|
||||
@ApiPropertyOptional({ example: 'Premium carwash service' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
@@ -34,6 +34,12 @@ export class UpdateBusinessDto {
|
||||
@IsUUID()
|
||||
categoryId?: string;
|
||||
|
||||
@ApiPropertyOptional({ example: 'تمیزی که میدرخشد', nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(150)
|
||||
subtitle?: string | null;
|
||||
|
||||
@ApiPropertyOptional({ example: 'Premium carwash service', nullable: true })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user