response

package
v2.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TYPE_RAW   = "raw"
	TYPE_MAP   = "map"
	TYPE_ARRAY = "array"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseBase

type ResponseBase struct {
	Code    string `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type ResponseGetToken

type ResponseGetToken struct {
	AccessToken string  `json:"access_token"`
	ExpiresIn   float64 `json:"expires_in"`
	*ResponseWork
}

type ResponseMiniProgram

type ResponseMiniProgram struct {
	*ResponseBase

	Msg     string `json:"msg,omitempty"` // 小程序直播的部分接口会把错误提示抛在msg字段
	ErrCode int    `json:"errcode"`
	ErrMSG  string `json:"errmsg,omitempty"`

	ResultCode string `json:"resultcode"`
	ResultMSG  string `json:"resultmsg,omitempty"`
}

type ResponseOfficialAccount

type ResponseOfficialAccount struct {
	*ResponseBase

	ErrCode int    `json:"errcode"`
	ErrMSG  string `json:"errmsg,omitempty"`

	ResultCode string `json:"resultcode"`
	ResultMSG  string `json:"resultmsg,omitempty"`
}

type ResponsePayment

type ResponsePayment struct {
	*ResponseBase

	ReturnCode string `xml:"return_code" json:"return_code"`
	ReturnMSG  string `xml:"return_msg,omitempty" json:"return_msg,omitempty"`

	ResultCode string `xml:"result_code" json:"result_code"`               // 是	String(16)	SUCCESS/FAIL
	ErrCode    string `xml:"err_code,omitempty" json:"err_code,omitempty"` // 否	String(32)	SYSTEMERROR--系统错误
	ErrMSG     string `xml:"errmsg,omitempty" json:"errmsg,omitempty"`
	ErrCodeDes string `xml:"err_code_des,omitempty" json:"err_code_des,omitempty"`
}

type ResponseWork

type ResponseWork struct {
	*ResponseBase

	ErrCode int    `json:"errcode"`
	ErrMSG  string `json:"errmsg,omitempty"`
}

Jump to

Keyboard shortcuts

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