ctx

package
v0.0.0-...-750a8a5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

@Description 应用程序上下文 @Author jiangyang @Created 2020/11/16 4:36 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(handle func(*Context)) gin.HandlerFunc

包装上下文

Types

type Context

type Context struct {
	*gin.Context
}

func (*Context) Fail

func (c *Context) Fail(err error, statusArr ...int)

错误返回

func (*Context) Success

func (c *Context) Success(data interface{})

成功返回

Jump to

Keyboard shortcuts

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