forked from free-lancers/electricity_bill_calc_service
		
	enhance(user):调整用户ID的JSON映射与数据结构映射。
This commit is contained in:
		| @@ -9,7 +9,7 @@ import ( | ||||
| type UserDetail struct { | ||||
| 	CreatedAndModifiedWithUser `xorm:"extends"` | ||||
| 	DeletedWithUser            `xorm:"extends"` | ||||
| 	Id                         string          `xorm:"varchar(120) pk not null" json:"id"` | ||||
| 	Id                         string          `xorm:"varchar(120) pk not null -" json:"-"` | ||||
| 	Name                       *string         `xorm:"varchar(100)" json:"name"` | ||||
| 	Abbr                       *string         `xorm:"varchar(50)" json:"abbr"` | ||||
| 	Region                     *string         `xorm:"varchar(10)" json:"region"` | ||||
| @@ -26,6 +26,7 @@ func (UserDetail) TableName() string { | ||||
|  | ||||
| type JoinedUserDetail struct { | ||||
| 	UserDetail `xorm:"extends"` | ||||
| 	Id         string `json:"id"` | ||||
| 	Username   string `json:"username"` | ||||
| 	Type       int8   `json:"type"` | ||||
| 	Enabled    bool   `json:"enabled"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user