Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Name string `json:"name" validate:"required"` Email string `json:"email" validate:"required,email"` }
CreateUserRequest dto for create single user's request.
type CreateUserResponse ¶
type CreateUserResponse struct { ID int `json:"id"` Name string `json:"name"` Email string `json:"email"` }
CreateUserResponse is dto for create single user's response.
type ResponseStatus ¶
type ResponseStatus string
ResponseStatus enum for JSON response status.
const ( // ResonseStatusOK means OK. ResonseStatusOK ResponseStatus = "OK" )
type SuccessResponse ¶
type SuccessResponse struct { Code int `json:"code"` Status string `json:"status"` Data interface{} `json:"data"` }
SuccessResponse for success response wrapper.
Click to show internal directories.
Click to hide internal directories.