Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseJSON ¶
func ResponseJSON(c *gin.Context, code Code, data interface{}, err *ResponseError)
Types ¶
type ResponseError ¶ added in v1.0.23
type ResponseError struct {
// contains filtered or unexported fields
}
func WrapToast ¶ added in v1.0.23
func WrapToast(err error, toast string) *ResponseError
WrapToast return a new ResponseError
func WrapToastf ¶ added in v1.0.23
func WrapToastf(err error, toast string, args ...interface{}) *ResponseError
WrapToastf return a new format ResponseError
func (*ResponseError) SetError ¶ added in v1.0.23
func (r *ResponseError) SetError(err error)
SetError
func (*ResponseError) SetToast ¶ added in v1.0.23
func (r *ResponseError) SetToast(toast string)
SetToast
Click to show internal directories.
Click to hide internal directories.