Documentation
¶
Overview ¶
Package wallet 货币系统
Index ¶
- func GetPublicFundsAccountId() int64
- func GetPublicFundsWallet() int
- func GetWalletName() string
- func GetWalletOf(uid int64) (money int)
- func InsertPublicFundsWallet(money int) error
- func InsertWalletOf(uid int64, money int) error
- func IssuancePovertySubsidies(uid int64, money int) error
- func SetWalletName(name string)
- type Storage
- type SubsidyRecord
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicFundsAccountId ¶ added in v1.8.5
func GetPublicFundsAccountId() int64
GetPublicFundsId 获取公款账户 ID
一般公款账户 ID 为 0
func GetPublicFundsWallet ¶ added in v1.8.5
func GetPublicFundsWallet() int
GetPublicFundsWallet 获取公款账户余额
func InsertPublicFundsWallet ¶ added in v1.8.5
InsertPublicFundsWallet 更新公款账户余额
与 InsertWalletOf 行为一致,只是将目标锁定为了公款账户。
Types ¶
type SubsidyRecord ¶
SubsidyRecord 补贴记录
func GetFirstSubsidyRecord ¶
func GetFirstSubsidyRecord(uid int64) *SubsidyRecord
GetFirstSubsidyRecord 获取第一个补贴记录
没有记录返回 nil
Click to show internal directories.
Click to hide internal directories.