api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Failed

func Failed(ctx *gin.Context, data ...interface{})

func Forbidden

func Forbidden(ctx *gin.Context, data ...interface{})

func Response

func Response(ctx *gin.Context, httpCode, errCode int, data ...interface{})

框架失败请使用这个函数

func ResponseOK

func ResponseOK(ctx *gin.Context, data ...interface{})

这个函数是给框架来使用的

func Success

func Success(ctx *gin.Context, data ...interface{})

func Unauthorized

func Unauthorized(ctx *gin.Context, data ...interface{})

func ValidateFailed

func ValidateFailed(ctx *gin.Context, data ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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