fix(model):增加对于可空字符串的数据结构处理。

This commit is contained in:
徐涛
2022-08-11 08:24:22 +08:00
parent a056915e1a
commit 668ae9fbd2
7 changed files with 22 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ type MaintenanceFee struct {
ParkId string `xorm:"varchar(120) notnull" json:"parkId"`
Name string `xorm:"varchar(50) notnull" json:"name"`
Fee decimal.Decimal `xorm:"numeric(8,2) notnull" json:"fee"`
Memo string `xorm:"text" json:"memo"`
Memo *string `xorm:"text" json:"memo"`
Enabled bool `xorm:"bool notnull" json:"enabled"`
}