Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `json:"username" validate:"required"` Email string `json:"email" validate:"required,email"` Firstname string `json:"firstname"` Lastname string `json:"lastname"` Password string `json:"password"` }
func (CreateUserRequest) Validate ¶
func (r CreateUserRequest) Validate() error
type GetUsersResponse ¶
type GetUsersResponse struct {
Users []UserResponse `json:"users"`
}
type LoginRequest ¶
type LoginRequest struct { Password string `json:"password"` Email string `json:"email" validate:"required,email"` }
func (LoginRequest) Validate ¶
func (r LoginRequest) Validate() error
type LoginResponse ¶
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.