showSdk

package
v0.0.0-...-34171ca Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShowApi

type ShowApi struct {
	url.Values
	// contains filtered or unexported fields
}

ShowApi结构体,Values储存普通表单数据,file储存文件数据

func NewShowApi

func NewShowApi(appid int, sign string) *ShowApi

func (*ShowApi) Add

func (sa *ShowApi) Add(key, value string)

Set别名,拒绝key对多个value

func (*ShowApi) AddFile

func (sa *ShowApi) AddFile(formfile, filename string)

添加上传文件内容

func (*ShowApi) Empty

func (sa *ShowApi) Empty()

清空表单数据,用于新建请求

func (*ShowApi) Get

func (sa *ShowApi) Get(url string) (string, error)

以post方式发送一个调用请求,返回接口body,忽略file

func (*ShowApi) Post

func (sa *ShowApi) Post(url string) (string, error)

以post方式发送一个调用请求,返回接口body,上传文件需用此方式

Jump to

Keyboard shortcuts

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