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
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user