Documentation ¶
Index ¶
- func Delete(token, endpoint, url string, pathParams *map[string]string, body *string, ...) (*resty.Response, error)
- func Get(token, endpoint, url string, pathParams *map[string]string, ...) (*resty.Response, error)
- func GetCallFunc() string
- func NewRequest(token string, endpoint string, cli *resty.Client) (*resty.Request, error)
- func Post(token, endpoint, url string, contentType string, pathParams *map[string]string, ...) (*resty.Response, error)
- func ResponseWithLog(ctx *context.Context, funcName string, req *resty.Request, ...) (*resty.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(token, endpoint, url string, pathParams *map[string]string, body *string, resultData interface{}) (*resty.Response, error)
Delete 方法
func Get ¶
func Get(token, endpoint, url string, pathParams *map[string]string, queryParams *map[string]string, resultData interface{}) (*resty.Response, error)
Get 方法
func NewRequest ¶
NewRequest 构造一个请求
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.