ele

package
v0.0.0-...-4b1b38e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseUrl = "https://api-be.ele.me/" // 请求根地址
	Timeout = 8000                     // 超时时间 3000ms
	Version = 3                        // api版本
	Encrypt = "des.v1"                 // 加密方式
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Source      string
	Secret      string
	AccessToken string
	RequestData map[string]interface{} // 请求参数map

}

func New

func New(source, secret string) *Base

func (*Base) WithClient

func (b *Base) WithClient() (string, error)

WithClient 请求

func (*Base) WithRequestParams

func (b *Base) WithRequestParams(cmd string, requestData map[string]interface{}) *Base

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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