openapi

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) BindResponse added in v0.1.4

func (r *Response) BindResponse(jsonStr string) error

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