聲明 func CostMoney(target entity<Wallet>, moneyType MoneyType, count float) go 參數 輸入 名稱 類型 描述 目標 Wallet 目標錢包 貨幣類型 MoneyType 減少的貨幣類型 數量 Float 減少的貨幣數量