package
Version:
v0.0.0-...-2602c8a
Opens a new window with list of versions in this module.
Published: Feb 11, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreateUserRequest struct {
Email string `json:"email" binding:"required"`
FirstName string `json:"firstName" binding:"required"`
LastName string `json:"lastName" binding:"required"`
}
type PaginationQueryParams struct {
}
type UpdateUserRequest struct {
UserID uuid.UUID `json:"userID"`
Email string `json:"email" binding:"required"`
FirstName string `json:"firstName" binding:"required"`
LastName string `json:"lastName" binding:"required"`
}
type UserQueryParams struct {
UserID string `form:"user_id" binding:"omitempty,uuid"`
Email string `form:"email" binding:"omitempty,email"`
}
type UserResponse struct {
TableID int64 `json:"tableID"`
UserID uuid.UUID `json:"userID"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
CreatedAt time.Time `json:"createdAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.