handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertOperationLog

func InsertOperationLog(c *gin.Context, username, productName, method, function, detail, permissionUUID string, requestBody string, logger *xlog.Logger)

插入操作日志

func JsonResponse

func JsonResponse(c *gin.Context, ctx *Context)

func Logger

func Logger(c *gin.Context) *xlog.Logger

Logger is get logger func

func Stream

func Stream(c *gin.Context, p producer, log *xlog.Logger)

Types

type Context

type Context struct {
	Logger   *xlog.Logger
	Err      error
	Resp     interface{}
	Username string
	User     *permission.User
}

Context struct

func NewContext

func NewContext(c *gin.Context) *Context

Jump to

Keyboard shortcuts

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