Files
gold_land_server/src/wallet/dto/sell-gold.dto.ts
T
safavimohadeseh78andCursor dfb20ca92c
Backend CI / type-check, build, tests (push) Successful in 1m0s
feat: prepare six-lesson trial backend with reliable rewards and operations
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-12 14:35:42 +03:30

10 lines
394 B
TypeScript

import { IsNumber, Max, Min } from 'class-validator'
import { MAX_GOLD_TRADE_GRAMS, MIN_GOLD_TRADE_GRAMS } from '../gold-trade.helpers'
export class SellGoldDto {
@IsNumber({ allowNaN: false, allowInfinity: false })
@Min(MIN_GOLD_TRADE_GRAMS, { message: 'مقدار نامعتبر است' })
@Max(MAX_GOLD_TRADE_GRAMS, { message: 'مقدار نامعتبر است' })
grams!: number
}