openapihelper

package
v0.0.0-...-68b20d9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReaderFail

func ReaderFail(c *gin.Context, code errort.OpenApiErrorCode)

func ReaderSuccess

func ReaderSuccess(c *gin.Context, data interface{})

func UrlDecodeParam

func UrlDecodeParam(obj interface{}, r *http.Request) error

Types

type CommonOpenResponse

type CommonOpenResponse struct {
	Code    errort.OpenApiErrorCode `json:"code"`
	Msg     errort.OpenApiErrorMsg  `json:"msg,omitempty"`
	Success bool                    `json:"success"`
	// 返回13位时间戳 time.Now.UnixNano / 1e6
	T      int64       `json:"t"`
	Result interface{} `json:"result,omitempty"`
}

Jump to

Keyboard shortcuts

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