enhance(model):调整部分模型的设计。
This commit is contained in:
parent
96c8699d7f
commit
1c4132e2e7
|
@ -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 {
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user