package models /* TODO: 5) актуализировать поле spent при покупке средств */ type Wallet struct { Cash int64 `json:"cash" bson:"cash"` Currency string `json:"currency" bson:"currency"` Spent int64 `json:"spent" bson:"spent"` PurchasesAmount int64 `json:"purchasesAmount" bson:"purchasesAmount"` /* Money деньги на счету в копейках. Чтобы при перессчётах не возникало денег из ни откуда. Фиксируемся к одной валюте, она будет внутренней, никому её не покажем. */ Money int64 `json:"money"` } type ReplenishAccountWallet struct { Cash int64 `json:"cash"` Currency string `json:"currency"` UserID string `json:"userId"` }