Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiResponse ¶
type ApiResponse struct { Code ApiCode Data interface{} Message string Ctx *gin.Context `json:"-"` }
func (*ApiResponse) Error ¶
func (resp *ApiResponse) Error(code ApiCode, message string)
func (*ApiResponse) Success ¶
func (resp *ApiResponse) Success()
func (*ApiResponse) WithData ¶
func (resp *ApiResponse) WithData(data interface{})
Click to show internal directories.
Click to hide internal directories.