mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 14:13:43 +01:00
17 lines
329 B
Go
17 lines
329 B
Go
package models
|
|
|
|
//User : For /api/users
|
|
type User struct {
|
|
Username string `json:"username"`
|
|
RealName string `json:"realname"`
|
|
Password string `json:"password"`
|
|
Email string `json:"email"`
|
|
Comment string `json:"comment"`
|
|
}
|
|
|
|
//ExistingUser : For GET /api/users
|
|
type ExistingUser struct {
|
|
User
|
|
ID int `json:"user_id"`
|
|
}
|