Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = 15 * time.Second
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { Status bool `json:"status"` Code int `json:"code"` Msg interface{} `json:"msg"` Data interface{} `json:"data"` }
func BaseResource ¶
func BaseResource(status bool, code int, data interface{}, msg string) (baseRep *BaseResponse)
Click to show internal directories.
Click to hide internal directories.