controller

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	policy.Authorization
	auth.AuthUser
	validator.Validation
}

type Controller

type Controller interface {
	Validate(c *gin.Context, _validator interface{}, onlyFirstError bool) (isAbort bool)

	Authorize(c *gin.Context, policies policy.Policier, action policy.Action) (isAbort bool, user model.IUser)

	Scan(c *gin.Context) (isAbort bool)
	User() model.IUser
	UserId(c *gin.Context) (userId uint, isAbort bool)
}

Jump to

Keyboard shortcuts

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