handler

package
v0.0.0-...-78e97f7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultName = "匿名(Anonymous User)"

Variables

This section is empty.

Functions

func HandlerHelloWorld

func HandlerHelloWorld(c *gin.Context)

func HandlerMessage

func HandlerMessage(c *gin.Context)

func HandlerMethodNotAllowed

func HandlerMethodNotAllowed(c *gin.Context)

func HandlerMethodNotFound

func HandlerMethodNotFound(c *gin.Context)

func HandlerOptions

func HandlerOptions(c *gin.Context)

Types

type GetData

type GetData struct {
	Name    string `json:"name"`
	Email   string `json:"email"`
	Message string `json:"message"`
	Refer   string `json:"refer"`
}

type ReturnData

type ReturnData struct {
	Code       int    `json:"code"`
	Success    bool   `json:"success"`
	Message    string `json:"message"`
	ErrMessage string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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