This commit is contained in:
Bastian Wagner
2026-08-22 16:41:47 +02:00
parent dfa62fd152
commit 081c9f83f9
137 changed files with 11594 additions and 1302 deletions

View File

@@ -0,0 +1,15 @@
import { IsInt, IsString, Max, Min } from 'class-validator';
export class ShopPurchaseDto {
@IsString()
itemKey!: string;
/**
* How many lots to buy. Bounded so one request cannot ask for a quantity
* whose price overflows before the affordability check can reject it.
*/
@IsInt()
@Min(1)
@Max(99)
quantity!: number;
}