初始化项目文件
This commit is contained in:
19
api_iris/model/balance.go
Normal file
19
api_iris/model/balance.go
Normal file
@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Balances struct {
|
||||
Username string `json:"username"`
|
||||
Card string `json:"card"`
|
||||
Type bool `gorm:"default:false" json:"type"` //1:支出型;0:收入型
|
||||
Balance float64 `json:"balance"`
|
||||
gorm.Model
|
||||
}
|
||||
|
||||
type BalanceLogs struct {
|
||||
Username string
|
||||
Card string
|
||||
Date string
|
||||
Balance float64
|
||||
gorm.Model
|
||||
}
|
Reference in New Issue
Block a user