Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiRequest ¶
type ApiRequest struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(ctx *gin.Context) *ApiRequest
func (*ApiRequest) JsonReturn ¶
func (r *ApiRequest) JsonReturn(err error, args ...interface{})
func (*ApiRequest) RequestParser ¶
func (r *ApiRequest) RequestParser(args interface{}) (err error)
type JsonResponse ¶
type JsonResponse struct {
Error int `json:"error"`
Data interface{} `json:"data,omitempty"`
Message string `json:"message"`
}
JsonResponse 返回的json数据格式
Click to show internal directories.
Click to hide internal directories.