chore: get discount data with all relation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsOptional, IsString } from "class-validator";
|
||||
|
||||
import { PaginationDto } from "../../../common/DTO/pagination.dto";
|
||||
import { ProvinceMessage } from "../../../common/enums/message.enum";
|
||||
|
||||
export class SearchProvincesDto extends PaginationDto {
|
||||
@IsOptional()
|
||||
@IsString({ message: ProvinceMessage.SEARCH_QUERY_MUST_BE_A_STRING })
|
||||
@ApiPropertyOptional({ description: "search query", example: "search query" })
|
||||
q: string;
|
||||
}
|
||||
Reference in New Issue
Block a user