Files
inkreach-official-website/apps/api/src/positions/dto/update-position.dto.ts
T
yeuimu 7e04877bb6 chore: migrate to pnpm workspaces monorepo with Turborepo
- Restructure directories: apps/api, apps/admin, apps/website
- Add root pnpm-workspace.yaml, turbo.json, .prettierrc, .gitignore
- Rename packages to @inkreach/api, @inkreach/admin, @inkreach/website
- Add shared packages: packages/tsconfig, packages/shared-types
- Add pnpm.onlyBuiltDependencies for native builds
- Update docs: README.md, structs.md
- All three projects build successfully
2026-07-11 16:54:05 +08:00

27 lines
481 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import {
IsInt,
IsOptional,
Min,
} from 'class-validator';
export class UpdatePositionDto {
@ApiProperty({ required: false })
@IsOptional()
@IsInt()
@Min(0)
indexVal?: number;
@ApiProperty({ required: false, nullable: true })
@IsOptional()
@IsInt()
@Min(1)
countryId?: number | null;
@ApiProperty({ required: false, nullable: true })
@IsOptional()
@IsInt()
@Min(1)
categoryId?: number | null;
}