0764c2689f
- Add service feedback system with CRUD operations - Add service guide functionality - Enhance metadata tracking with comprehensive headers (user-agent, referer, language, etc.) - Add new DTOs for feedback and guide management - Add repositories for feedback and guide entities - Update controller with new endpoints for feedback management - Improve service organization and method structure - Add payment and user entity enhancements
19 lines
611 B
TypeScript
19 lines
611 B
TypeScript
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
import { Type } from "class-transformer";
|
|
import { IsIn, IsOptional, IsString } from "class-validator";
|
|
|
|
import { ServiceMessage } from "../../../common/enums/message.enum";
|
|
|
|
export class ServiceGuideQueryDto {
|
|
@IsOptional()
|
|
@IsString()
|
|
@ApiPropertyOptional({ description: "Search term for title and content", example: "search query" })
|
|
q?: string;
|
|
|
|
@IsOptional()
|
|
@Type(() => Number)
|
|
@IsIn([1, 0], { message: ServiceMessage.IS_ACTIVE_SHOULD_BE_1_0 })
|
|
@ApiPropertyOptional({ description: "guide status", example: 1 })
|
|
isActive?: number;
|
|
}
|