import { ApiProperty } from "@nestjs/swagger";
import { IsNumber, IsString } from "class-validator";
import { Types } from "mongoose";

enum faq_type {
    ABOUT_IMATCH = "ABOUT_IMATCH",
    IMATCH_RULES = "IMATCH_RULES",
    HOW_TO_PARTICIPATE = "HOW_TO_PARTICIPATE",
    BENEFITS_OF_WINNER = "BENEFITS_OF_WINNER",
    WINNER = "WINNER",
    TERM_ = "TERM_&_SERVICES"
}

export class brand {

    @ApiProperty({})
    @IsString()
    type: string;

    @ApiProperty()
    @IsString()
    ques: string;

    @ApiProperty()
    @IsString()
    ans: string;

}

export class faqEdit {
    @ApiProperty({})
    @IsString()
    type: string;

    @ApiProperty({ required: false })
    @IsString()
    ques: string;

    @ApiProperty({ required: false })
    @IsString()
    ans: string;

}

export class faqList {
    
    @ApiProperty({ required: false })
    @IsString()
    search: string;

    @ApiProperty({ required: false })
    @IsString()
    type: string;

    @ApiProperty({ required: false })
    pagination: number;

    @ApiProperty({ required: false })
    limit: number;

}