new features
This commit is contained in:
@@ -19,6 +19,15 @@ type User struct {
|
||||
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
|
||||
}
|
||||
|
||||
type UserWithPositions struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
Email string `json:"email"`
|
||||
FirstName string `json:"first_name"`
|
||||
SecondName string `json:"second_name"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
Positions []PositionLocalized `json:"positions"`
|
||||
}
|
||||
|
||||
type UserRegisterInput struct {
|
||||
Email string `json:"email" binding:"required,min=3"`
|
||||
Password string `json:"password" binding:"required,min=8"`
|
||||
|
||||
Reference in New Issue
Block a user