Documentation ¶
Index ¶
- type APIResponse
- type Meta
- type RestService
- func (srv RestService) BindHeader(obj interface{}) SOA
- func (srv RestService) BindJSON(obj interface{}) SOA
- func (srv RestService) Code(httpCode *int) SOA
- func (srv RestService) Do() error
- func (srv RestService) GET(url string) SOA
- func (srv RestService) POST(url string) SOA
- func (srv RestService) SetBody(obj interface{}) SOA
- func (srv RestService) SetForm(obj interface{}) SOA
- func (srv RestService) SetHeader(obj interface{}) SOA
- type RspHeader
- type SOA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Context *gin.Context `json:"-"` Meta Meta `json:"meta"` Data interface{} `json:"data"` }
func NewAPIResponse ¶
func NewAPIResponse(ctx *gin.Context) (rs *APIResponse)
type RestService ¶
type RestService struct {
// contains filtered or unexported fields
}
func NewRestService ¶
func NewRestService() *RestService
func (RestService) BindHeader ¶
func (srv RestService) BindHeader(obj interface{}) SOA
func (RestService) BindJSON ¶
func (srv RestService) BindJSON(obj interface{}) SOA
func (RestService) Code ¶
func (srv RestService) Code(httpCode *int) SOA
func (RestService) Do ¶
func (srv RestService) Do() error
func (RestService) GET ¶
func (srv RestService) GET(url string) SOA
func (RestService) POST ¶
func (srv RestService) POST(url string) SOA
func (RestService) SetBody ¶
func (srv RestService) SetBody(obj interface{}) SOA
func (RestService) SetForm ¶
func (srv RestService) SetForm(obj interface{}) SOA
func (RestService) SetHeader ¶
func (srv RestService) SetHeader(obj interface{}) SOA
Click to show internal directories.
Click to hide internal directories.