mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-12 05:24:45 +01:00
20 lines
418 B
Go
20 lines
418 B
Go
package models
|
|
|
|
//Member : For /api/projects/:pid/members
|
|
type Member struct {
|
|
RoleID int `json:"role_id"`
|
|
Member *MemberUser `json:"member_user"`
|
|
}
|
|
|
|
//MemberUser ...
|
|
type MemberUser struct {
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
//ExistingMember : For GET /api/projects/20/members
|
|
type ExistingMember struct {
|
|
MID int `json:"id"`
|
|
Name string `json:"entity_name"`
|
|
RoleID int `json:"role_id"`
|
|
}
|