Example #1
0
        /// <summary>
        /// 取得balance (snapshot)
        /// </summary>
        /// <returns></returns>
        public async Task <IRpcMethodResult> getBalances()
        {
            string txId = "qwerasdf";
            await balanceHelper.deposite(txId, uid, "USD", 10);

            var balance = await balanceHelper.Get(uid);

            return(Ok(new
            {
                balance
            }));

            // var balance = db.getBalance(userId);
            // return Ok(new
            // {
            //     list = balance?.balances
            // });
        }