Files
dsc-api/src/modules/danak-services/DTO/service-guide-query.dto.ts
T
mahyargdz 0764c2689f feat: enhance danak services with feedback system and improved metadata tracking
- 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
2025-08-19 13:15:13 +03:30

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;
}