openapi

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindResponse added in v0.1.5

func BindResponse(jsonStr string, dst interface{}) error

Types

type InnerResponse added in v0.1.4

type InnerResponse struct {
	StatusCode interface{} `json:"statusCode,omitempty"`
	// Error code, which is a three part code for product.module.code
	Error string `json:"error,omitempty"`
	// Error description during failure, usually in English
	Message string `json:"message,omitempty"`
	// Error description during failure, usually in Chinese
	Description string `json:"description,omitempty"`
}

type Response added in v0.1.3

type Response struct {
	InnerResponse `json:",inline"`
	// Data returned upon success
	ReturnObj interface{} `json:"returnObj"`
}

func (*Response) DeepCopy added in v0.1.3

func (r *Response) DeepCopy() Response

func (*Response) ParseStatusCode added in v0.1.3

func (r *Response) ParseStatusCode() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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