response

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Json

func Json(r *ghttp.Request, code int, message string, data ...interface{})

Json 返回标准JSON数据。

func JsonExit

func JsonExit(r *ghttp.Request, code int, message string, data ...interface{})

JsonExit 返回标准JSON数据并退出当前HTTP执行函数。

func JsonRedirect

func JsonRedirect(r *ghttp.Request, code int, message, redirect string, data ...interface{})

JsonRedirect 返回标准JSON数据引导客户端跳转。

func JsonRedirectExit

func JsonRedirectExit(r *ghttp.Request, code int, message, redirect string, data ...interface{})

JsonRedirectExit 返回标准JSON数据引导客户端跳转,并退出当前HTTP执行函数。

Types

This section is empty.

Jump to

Keyboard shortcuts

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