api

package
v0.0.0-...-50f8553 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SiteAPI

type SiteAPI struct {
	Host string
}
var Instance SiteAPI

func (*SiteAPI) Get

func (sa *SiteAPI) Get(url string, param map[string]string) (*simplejson.Json, error)

Get请求 url 请求地址

func (*SiteAPI) Post

func (sa *SiteAPI) Post(url string, param map[string]string, body interface{}) (*simplejson.Json, error)

Post请求 url 请求地址 param_func 设置param的回调方法,使用方法

func param_func(req *httplib.BeegoHTTPRequest){
	req.Param("password","123456")
}

func (*SiteAPI) SetConfig

func (sa *SiteAPI) SetConfig(host string)

设置配置 host 请求的统一前缀

Jump to

Keyboard shortcuts

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