response

package
v0.0.0-...-861475b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(r *http.Request, w http.ResponseWriter, resp interface{}, err error)

Handler 处理所有响应

Types

type Response

type Response struct {
	Code     uint32      `json:"code"`
	Msg      string      `json:"msg"`
	Response interface{} `json:"response"`
}

Response 公共响应体

Jump to

Keyboard shortcuts

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