enhance(model):调整部分模型的设计。

This commit is contained in:
徐涛 2022-08-23 22:30:35 +08:00
parent 96c8699d7f
commit 1c4132e2e7
2 changed files with 4 additions and 4 deletions

View File

@ -78,9 +78,9 @@ func (ReportIndexSimplified) TableName() string {
} }
type JoinedReportForWithdraw struct { type JoinedReportForWithdraw struct {
Report ReportIndexSimplified `xorm:"extends" json:"report"` Report Report `xorm:"extends" json:"report"`
Park ParkSimplified `xorm:"extends" json:"park"` Park ParkSimplified `xorm:"extends" json:"park"`
User UserDetailSimplified `xorm:"extends" json:"user"` User UserDetailSimplified `xorm:"extends" json:"user"`
} }
func (JoinedReportForWithdraw) TableName() string { func (JoinedReportForWithdraw) TableName() string {

View File

@ -46,7 +46,7 @@ func (FullJoinedUserDetail) TableName() string {
} }
type UserDetailSimplified struct { type UserDetailSimplified struct {
Id string `xorm:"varchar(120) pk not null" json:"-"` Id string `xorm:"varchar(120) pk not null" json:"id"`
Name *string `xorm:"varchar(100)" json:"name"` Name *string `xorm:"varchar(100)" json:"name"`
Abbr *string `xorm:"varchar(50)" json:"abbr"` Abbr *string `xorm:"varchar(50)" json:"abbr"`
Region *string `xorm:"varchar(10)" json:"region"` Region *string `xorm:"varchar(10)" json:"region"`