Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateArticleRequest ¶
type CreateArticleRequest struct { UserID uint `json:"user_id" validate:"required"` Title string `json:"title" validate:"required"` Content string `json:"content" validate:"required"` }
func (*CreateArticleRequest) Validate ¶
func (req *CreateArticleRequest) Validate() error
type LoginRequest ¶
type LoginRequest struct { Email string `json:"email" validate:"required"` Password string `json:"password" validate:"required"` }
func (*LoginRequest) Validate ¶
func (req *LoginRequest) Validate() error
type SignupRequest ¶
type SignupRequest struct { Email string `json:"email" validate:"required"` Password string `json:"password" validate:"required"` ConfirmPassword string `json:"confirm_password" validate:"required"` }
func (*SignupRequest) Validate ¶
func (req *SignupRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.