feat: prepare six-lesson trial backend with reliable rewards and operations
Backend CI / type-check, build, tests (push) Successful in 1m0s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-12 14:35:42 +03:30
co-authored by Cursor
parent 5e5a14030a
commit dfb20ca92c
46 changed files with 2589 additions and 123 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
import { IsNumber } from 'class-validator'
import { IsNumber, Max, Min } from 'class-validator'
import { MAX_GOLD_TRADE_GRAMS, MIN_GOLD_TRADE_GRAMS } from '../gold-trade.helpers'
export class BuyGoldDto {
@IsNumber({ allowNaN: false, allowInfinity: false })
@Min(MIN_GOLD_TRADE_GRAMS, { message: 'مقدار نامعتبر است' })
@Max(MAX_GOLD_TRADE_GRAMS, { message: 'مقدار نامعتبر است' })
grams!: number
}
+4 -1
View File
@@ -1,6 +1,9 @@
import { IsNumber } from 'class-validator'
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
}