diff --git a/request/curl.go b/request/curl.go index 650ab23..59476c6 100644 --- a/request/curl.go +++ b/request/curl.go @@ -19,27 +19,12 @@ import ( "github.com/ddliu/go-httpclient" ) -// Send 发送HTTP请求 -// -// Author : go_developer@163.com<白茶清欢> -// -// Date : 9:38 下午 2021/8/11 -func Send(apiMethod *APIMethod) *APIResponse { - if apiMethod.Parameter == nil { - apiMethod.Parameter = make(map[string]interface{}) - } - if apiMethod.Header == nil { - apiMethod.Header = make(map[string]string) - } - return nil -} - // request 发送请求 // // Author : go_developer@163.com<白茶清欢> // // Date : 2:27 下午 2021/8/12 -func request(apiMethod *APIMethod, responseConfig *ResponseConfig) (*APIResponse, bool) { +func Request(apiMethod *APIMethod, responseConfig *ResponseConfig) (*APIResponse, bool) { apiResponse := &APIResponse{ Code: "", Message: "",