webcheck

package
v1.0.1-dev-02 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MulanPSL-2.0 Imports: 19 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectWebCheckRight

func InjectWebCheckRight(s *WebCheckRight)

func LoadWebCheckRight

func LoadWebCheckRight() baseiface.ISingleton

Types

type WebCheckRight

type WebCheckRight struct {
	basedto.BaseEntitySingle
	webiface.IrpcCheckAllowed `json:"-"`

	WebPrefix string `json:"webpath_prefix"`
}

func FindBeanWebCheckRight

func FindBeanWebCheckRight() *WebCheckRight

FindBeanWebCheckRight

func NewWebCheckRight

func NewWebCheckRight() *WebCheckRight

func (*WebCheckRight) CheckAllowed

func (wcr *WebCheckRight) CheckAllowed() gin.HandlerFunc

checked middleware

func (*WebCheckRight) CheckDataAllowed

func (wcr *WebCheckRight) CheckDataAllowed(c *gin.Context, req *webdto.WebCheckRequest) bool

func (*WebCheckRight) CheckSessionToken

func (wcr *WebCheckRight) CheckSessionToken() gin.HandlerFunc

checked middleware

func (*WebCheckRight) CheckToken

func (wcr *WebCheckRight) CheckToken(c *gin.Context) (int, error)

func (*WebCheckRight) CheckedFilter

func (wcr *WebCheckRight) CheckedFilter(c *gin.Context) bool

func (*WebCheckRight) FindWebMiddlewares

func (wcr *WebCheckRight) FindWebMiddlewares() []gin.HandlerFunc

获取中间件

func (*WebCheckRight) GetSessionToken

func (wcr *WebCheckRight) GetSessionToken(c *gin.Context) (int, *webdto.WebUserId, error)

func (*WebCheckRight) GetUserId

func (wcr *WebCheckRight) GetUserId(ctx *gin.Context) *webdto.WebUserId

func (*WebCheckRight) IfCheckRes

func (wcr *WebCheckRight) IfCheckRes() bool

func (*WebCheckRight) Info

func (wcr *WebCheckRight) Info() string

func (*WebCheckRight) Init

func (wcr *WebCheckRight) Init(c *gin.Context) *WebCheckRight

func (*WebCheckRight) InitDisabled

func (wcr *WebCheckRight) InitDisabled(c *gin.Context) *WebCheckRight

func (*WebCheckRight) ParseResult

func (self *WebCheckRight) ParseResult(ctx *gin.Context, data interface{}) bool

func (*WebCheckRight) RegisterCheckedFilter

func (wcr *WebCheckRight) RegisterCheckedFilter(pathRoute string)

注册放通接口之路由

func (*WebCheckRight) RegisterCheckedRes

func (wcr *WebCheckRight) RegisterCheckedRes(pathRoute string, res string)

注册资源接口列表

func (*WebCheckRight) RegisterIrpc

func (wcr *WebCheckRight) RegisterIrpc(irpc webiface.IrpcCheckAllowed) *WebCheckRight

func (*WebCheckRight) RegisterMiddlewareDemo

func (wcr *WebCheckRight) RegisterMiddlewareDemo()

注入DEMO中间件

func (*WebCheckRight) RegisterMiddlewares

func (wcr *WebCheckRight) RegisterMiddlewares(middlewares ...gin.HandlerFunc)

注入中间件

func (*WebCheckRight) RouteFullPath

func (wcr *WebCheckRight) RouteFullPath(c *gin.Context) string

func (*WebCheckRight) RpcGetUserId

func (wcr *WebCheckRight) RpcGetUserId(c *gin.Context) *webdto.WebUserId

func (*WebCheckRight) RpcSetUserId

func (wcr *WebCheckRight) RpcSetUserId(ctx *gin.Context)

func (*WebCheckRight) SetUserId

func (wcr *WebCheckRight) SetUserId(ctx *gin.Context)

func (*WebCheckRight) StoreCheckedDbRes

func (wcr *WebCheckRight) StoreCheckedDbRes(router *gin.Engine)

func (*WebCheckRight) StoreCheckedRes

func (wcr *WebCheckRight) StoreCheckedRes(router *gin.Engine)

func (*WebCheckRight) TrimRoutePath

func (wcr *WebCheckRight) TrimRoutePath(routePath string) string

func (*WebCheckRight) WebCheckAllowed

func (wcr *WebCheckRight) WebCheckAllowed(ctx *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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