Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestGetOptions ¶
type RequestPostOptions ¶
type RequestPostOptions struct {
URL string `json:"url"`
Data map[string]interface{} `json:"data"`
Headers map[string]any `json:"headers"`
}
RequestPostOptions 结构体用于封装POST请求的选项
type Response ¶
type Response struct {
Code int `json:"code"`
Msg string `json:"msg"`
Content any `json:"content"`
}
func Get ¶ added in v1.0.60
func Get(options RequestGetOptions) (Response, error)
func Post ¶ added in v1.0.60
func Post(options RequestPostOptions) (Response, error)
RequestPost 函数用于发送POST请求
Click to show internal directories.
Click to hide internal directories.