Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestTypeBody = "RequestBody" RequestTypeParams = "RequestParams" RequestTypeForm = "RequestForm" Context = "Context" )
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶ added in v0.2.0
type BaseResponse struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
func (*BaseResponse) GetCode ¶ added in v0.2.0
func (r *BaseResponse) GetCode() int
func (*BaseResponse) GetData ¶ added in v0.2.0
func (r *BaseResponse) GetData() interface{}
func (*BaseResponse) GetMessage ¶ added in v0.2.0
func (r *BaseResponse) GetMessage() string
func (*BaseResponse) SetCode ¶ added in v0.2.0
func (r *BaseResponse) SetCode(code int)
func (*BaseResponse) SetData ¶ added in v0.2.0
func (r *BaseResponse) SetData(data interface{})
func (*BaseResponse) SetMessage ¶ added in v0.2.0
func (r *BaseResponse) SetMessage(message string)
type RequestBody ¶ added in v0.2.0
type RequestBody struct { }
type RequestForm ¶ added in v0.2.0
type RequestForm struct { }
type RequestParams ¶ added in v0.2.0
type RequestParams struct { }
Click to show internal directories.
Click to hide internal directories.