Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { ID uuid.UUID `db:"id" json:"id" validate:"required,uuid"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` UserID uuid.UUID `db:"user_id" json:"user_id" validate:"required,uuid"` Title string `db:"title" json:"title" validate:"required,lte=255"` Author string `db:"author" json:"author" validate:"required,lte=255"` BookStatus int `db:"book_status" json:"book_status" validate:"required,len=1"` BookAttrs BookAttrs `db:"book_attrs" json:"book_attrs" validate:"required,dive"` }
type BookAttrs ¶
type User ¶
type User struct { ID uuid.UUID `db:"id" json:"id" validate:"required,uuid"` 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,lte=255"` PasswordHash string `db:"password_hash" json:"password_hash,omitempty" validate:"required,lte=255"` UserStatus int `db:"user_status" json:"user_status" validate:"required,len=1"` UserRole string `db:"user_role" json:"user_role" validate:"required,lte=25"` }
Click to show internal directories.
Click to hide internal directories.