api

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKey

type ApiKey struct {
	Key    string
	Secret string
	Id     uint8  `json:"id,omitempty" codec:"id,omitempty"`
	Name   string `json:"name,omitempty" codec:"name,omitempty"`
}

ApiKey jd APP key/secret

type ApiResult

type ApiResult struct {
	Success        bool   `json:"success,omitempty" codec:"success,omitempty"`
	EnglishErrCode string `json:"englishErrCode,omitempty" codec:"englishErrCode,omitempty"`
	ChineseErrCode string `json:"chineseErrCode,omitempty" codec:"chineseErrCode,omitempty"`
	NumberCode     int    `json:"numberCode,omitempty" codec:"numberCode,omitempty"`
}

func (ApiResult) Error

func (e ApiResult) Error() string

func (ApiResult) IsError added in v1.1.1

func (e ApiResult) IsError() bool

type BaseRequest

type BaseRequest struct {
	Session  string
	AnApiKey *ApiKey `json:",omitempty" codec:",omitempty"`

	Debug bool `json:"-"`
}

type ErrorResponnse

type ErrorResponnse struct {
	Code   string `json:"code,omitempty" codec:"code,omitempty"`
	ZhDesc string `json:"zh_desc,omitempty" codec:"zh_desc,omitempty"`
	EnDesc string `json:"en_desc,omitempty" codec:"en_desc,omitempty"`
}

func (ErrorResponnse) Error

func (e ErrorResponnse) Error() string

Jump to

Keyboard shortcuts

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