Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginInput ¶
type UpdatePasswordInput ¶
type UpdateUserInput ¶
type User ¶
type User struct { ID uuid.UUID `json:"id"` Firstname string `json:"firstname" validate:"required,min=3,max=30"` Lastname string `json:"lastname" validate:"required,min=3,max=30"` Username string `json:"username" validate:"omitempty,min=3,max=30"` Email string `json:"email" validate:"required,email"` Password string `json:"password" validate:"required,min=7"` CreatedAt time.Time `json:"created_at,omitempty" db:"created_at"` UpdatedAt time.Time `json:"updated_at,omitempty" db:"updated_at"` DeletedAt *time.Time `json:"deleted_at,omitempty" db:"deleted_at"` }
type UserResponse ¶
type UserResponse struct { ID uuid.UUID `json:"id"` Firstname string `json:"firstname" validate:"required,min=3,max=30"` Lastname string `json:"lastname" validate:"required,min=3,max=30"` Username string `json:"username" validate:"omitempty,min=3,max=30"` Email string `json:"email" validate:"required,email"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
Click to show internal directories.
Click to hide internal directories.