Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyBodyResponse ¶
type EmptyBodyResponse struct{} // @name EmptyBodyResponse
type Result ¶
type Result[T any] struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` Data T `json:"data"` } // @name JSONResponse
func OkByMessage ¶
type ValidationErrorDetail ¶
type ValidationErrorResponse ¶
type ValidationErrorResponse struct {
Message string `json:"message"`
Errors map[string][]ValidationErrorDetail `json:"errors"`
}
func ValidationError ¶
func ValidationError(message string, errors map[string][]ValidationErrorDetail) ValidationErrorResponse
Click to show internal directories.
Click to hide internal directories.