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:
mahyargdz
2025-08-19 13:15:13 +03:30
parent 43a3714284
commit 0764c2689f
18 changed files with 511 additions and 16 deletions
@@ -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;
}