handler

package
v0.0.0-...-12b49db Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHandler

func DecodeHandler(c *gin.Context)

func PingHandler

func PingHandler(c *gin.Context)

Types

type Req

type Req struct {
	Tx string `json:"tx" form:"tx" binding:"required"`
}

type Response

type Response struct {
	Code int         `json:"code"`
	Data interface{} `json:"data,omitempty"`
	Msg  string      `json:"msg"`
}

func BuildResponse

func BuildResponse(code int, msg string, data interface{}) Response

func RespOK

func RespOK(data interface{}) Response

Jump to

Keyboard shortcuts

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