Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uuid.UUID `db:"id" json:"id" validate:"required,id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` Email string `db:"email" json:"email" validate:"required,email"` UserStatus int `db:"user_status" json:"user_status"` UserAttrs UserAttrs `db:"user_attrs" json:"user_attrs"` }
User struct describe user object.
type UserAttrs ¶
type UserAttrs struct { Picture string `json:"picture"` FirstName string `json:"first_name"` LastName string `json:"last_name"` About string `json:"about"` }
UserAttrs struct describe user attributes.
Click to show internal directories.
Click to hide internal directories.