forked from free-lancers/electricity_bill_calc_service
		
	enhance(model):调整部分模型的设计。
This commit is contained in:
		| @@ -78,9 +78,9 @@ func (ReportIndexSimplified) TableName() string { | ||||
| } | ||||
|  | ||||
| type JoinedReportForWithdraw struct { | ||||
| 	Report ReportIndexSimplified `xorm:"extends" json:"report"` | ||||
| 	Park   ParkSimplified        `xorm:"extends" json:"park"` | ||||
| 	User   UserDetailSimplified  `xorm:"extends" json:"user"` | ||||
| 	Report Report               `xorm:"extends" json:"report"` | ||||
| 	Park   ParkSimplified       `xorm:"extends" json:"park"` | ||||
| 	User   UserDetailSimplified `xorm:"extends" json:"user"` | ||||
| } | ||||
|  | ||||
| func (JoinedReportForWithdraw) TableName() string { | ||||
|   | ||||
| @@ -46,7 +46,7 @@ func (FullJoinedUserDetail) TableName() string { | ||||
| } | ||||
|  | ||||
| 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"` | ||||
| 	Abbr    *string `xorm:"varchar(50)" json:"abbr"` | ||||
| 	Region  *string `xorm:"varchar(10)" json:"region"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user