response

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Json

func Json(c *gin.Context, status int, msg string, data ...interface{})

Json 响应json

Types

type JsonStruct

type JsonStruct interface {
	Set(status int, msg string, data interface{}, timestamp int64)
}

JsonStruct Json结构接口

var JsonContext JsonStruct = &json_struct.Default{}

JsonContext 内容

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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