forked from free-lancers/electricity_bill_calc_service
fix(model):增加对于可空字符串的数据结构处理。
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user