internal

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpGet

func HttpGet(apiUrl string) (body []byte, err error)

func HttpPost

func HttpPost(apiUrl string, params interface{}) (body []byte, err error)

func HttpUploadMedia

func HttpUploadMedia(apiUrl string, filePath string, filename string) (body []byte, err error)

Types

type BizResponse

type BizResponse struct {
	Error
}

BizResponse 基础返回类型,定义错误代码及错误消息

type Error

type Error struct {
	ErrCode  int    `json:"errcode,omitempty"` // 错误代码
	ErrorMsg string `json:"errmsg,omitempty"`  // 错误消息
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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