R

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessKey = "_c_success"
)

Variables

This section is empty.

Functions

func Fail

func Fail(c *gin.Context, message string, code ...int)

func Success

func Success(c *gin.Context, value any)

Types

type Result

type Result struct {
	RequestId string `json:"requestId"`
	Code      int    `json:"code"`
	Message   string `json:"message"`
	Value     any    `json:"value"`
}

Jump to

Keyboard shortcuts

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