mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
Merge pull request #302 from reasonerjt/api-attributes
role info need to be in user model for now
This commit is contained in:
commit
f9f5f7f70a
@ -29,11 +29,11 @@ type AccessLog struct {
|
|||||||
GUID string `orm:"column(GUID)" json:"guid"`
|
GUID string `orm:"column(GUID)" json:"guid"`
|
||||||
Operation string `orm:"column(operation)" json:"operation"`
|
Operation string `orm:"column(operation)" json:"operation"`
|
||||||
OpTime time.Time `orm:"column(op_time)" json:"op_time"`
|
OpTime time.Time `orm:"column(op_time)" json:"op_time"`
|
||||||
Username string
|
Username string `json:"username"`
|
||||||
Keywords string
|
Keywords string `json:"keywords"`
|
||||||
|
|
||||||
BeginTime time.Time
|
BeginTime time.Time
|
||||||
BeginTimestamp int64
|
BeginTimestamp int64 `json:"begin_timestamp"`
|
||||||
EndTime time.Time
|
EndTime time.Time
|
||||||
EndTimestamp int64
|
EndTimestamp int64 `json:"end_timestamp"`
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,8 @@ type User struct {
|
|||||||
Realname string `orm:"column(realname)" json:"realname"`
|
Realname string `orm:"column(realname)" json:"realname"`
|
||||||
Comment string `orm:"column(comment)" json:"comment"`
|
Comment string `orm:"column(comment)" json:"comment"`
|
||||||
Deleted int `orm:"column(deleted)" json:"deleted"`
|
Deleted int `orm:"column(deleted)" json:"deleted"`
|
||||||
// Rolename string `json:role_name`
|
Rolename string `json:role_name`
|
||||||
// RoleID int `json:"role_id"`
|
RoleID int `json:"role_id"`
|
||||||
// RoleList []Role `json:"role_list"`
|
// RoleList []Role `json:"role_list"`
|
||||||
HasAdminRole int `orm:"column(sysadmin_flag)" json:"has_admin_role"`
|
HasAdminRole int `orm:"column(sysadmin_flag)" json:"has_admin_role"`
|
||||||
ResetUUID string `orm:"column(reset_uuid)" json:"reset_uuid"`
|
ResetUUID string `orm:"column(reset_uuid)" json:"reset_uuid"`
|
||||||
|
Loading…
Reference in New Issue
Block a user