network

package
v0.0.0-...-633f1b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpDeleteCommon

func HttpDeleteCommon(url, userToken, language string) (err error)

HttpDeleteCommon http Delete

func HttpGet

func HttpGet(url, userToken, language string) (byteArr []byte, err error)

HttpGet Get请求

func HttpPost

func HttpPost(url, userToken, language string, postBytes []byte) (byteArr []byte, err error)

HttpPost Post请求,关注返回结果

func HttpPostCommon

func HttpPostCommon(url, userToken, language string, postBytes []byte) (err error)

HttpPostCommon Post请求,通用返回处理

func HttpPostJsonFile

func HttpPostJsonFile(filePath, url, userToken, language string) (uploadData []byte, err error)

HttpPostJsonFile 上传文件

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL