Documentation ¶
Overview ¶
* @Author: lisheng * @Date: 2022-11-15 16:32:01 * @LastEditTime: 2022-11-24 16:26:40 * @LastEditors: lisheng * @Description: * @FilePath: /jf-go-kit/base/request/request.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GET ¶ added in v0.0.2
* * @description: GET方式的http请求 * @param {string} url 请求地址 * @param {map[string]string} headers 请求header头设置 * @param {*} params 请求地址栏后需要拼接参数操作 * @param {interface{}} resDataPtr 需返回绑定数据 * @return {*} 返回类型 "错误信息" * @author: liqiyuWorks
func POST ¶ added in v0.0.2
func POST(url string, headers map[string]string, reqDataMap map[string]string, resDataPtr interface{}) error
*
- @description: POST方式的http请求
- @param {string} url 请求链接
- @param {map[string]string} headers 请求header头设置
- @param {map[string]string} reqDataMap 请求的data map
- @param {interface{}} resDataPtr 需返回绑定数据
- @return {*} 错误信息
- @author: liqiyuWorks
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.