Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleValidatorError ¶
func HandleValidatorError(c *gin.Context, err error, ut ut.Translator)
func WriteResponse ¶
Types ¶
type ErrResponse ¶
type ErrResponse struct { // Code defines the business error code. Code int `json:"code"` // Message contains the detail of this message. // This message is suitable to be exposed to external Message string `json:"message"` // Reference returns the reference document which maybe useful to solve this error. Reference string `json:"reference,omitempty"` }
Click to show internal directories.
Click to hide internal directories.