|
@@ -21,6 +21,8 @@ type UserAccount struct {
|
|
ID int `json:"id" gorm:"primaryKey"`
|
|
ID int `json:"id" gorm:"primaryKey"`
|
|
AppID string `json:"app_id"`
|
|
AppID string `json:"app_id"`
|
|
Money int `json:"money"`
|
|
Money int `json:"money"`
|
|
|
|
+ CreateAt time.Time `json:"-" gorm:"autoCreateTime"` //标签autoCreateTime设置如果字段名字不为CreatAt时候自动插入当前时间
|
|
|
|
+ UpdateAt time.Time `json:"-" gorm:"autoUpdateTime"`
|
|
}
|
|
}
|
|
|
|
|
|
func (p *UserAccount) TableName() string {
|
|
func (p *UserAccount) TableName() string {
|