diff --git a/model/user_detail.go b/model/user_detail.go index 79c3675..d76c6b0 100644 --- a/model/user_detail.go +++ b/model/user_detail.go @@ -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"`