Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountAddHandler ¶
func GetAccountAddHandler(db *gorm.DB) gin.HandlerFunc
func GetAccountUpdateHandler ¶
func GetAccountUpdateHandler(db *gorm.DB) gin.HandlerFunc
Types ¶
type GinWalletAccount ¶
type GinWalletAccount struct {
Id int `json:"id"`
Username string `json:"username" gorm:"column:username;unique;"`
Money float64 `json:"money"`
AddTime int `json:"add_time" gorm:"type:int"`
}
GinWalletAccount 钱包账户表
type GinWalletAccountRecord ¶
type GinWalletAccountRecord struct {
Id int `json:"id"`
Username string `json:"username"`
AddMoney float64 `json:"add_money" gorm:"type:decimal"`
OldMoney float64 `json:"old_money" gorm:"type:decimal"`
TotalMoney float64 `json:"total_money" gorm:"type:decimal"`
AddTime int `json:"add_time" gorm:"type:int"`
Category string `json:"category" gorm:"type:varchar(2);default:'支出'"` // 类型:支出/收入
Description string `json:"description"`
}
GinWalletAccountRecord 钱包账户变动记录表
Click to show internal directories.
Click to hide internal directories.