Documentation ¶
Index ¶
- func InjectWebCheckRight(s *WebCheckRight)
- func LoadWebCheckRight() baseiface.ISingleton
- type WebCheckRight
- func (wcr *WebCheckRight) CheckAllowed() gin.HandlerFunc
- func (wcr *WebCheckRight) CheckDataAllowed(c *gin.Context, req *webdto.WebCheckRequest) bool
- func (wcr *WebCheckRight) CheckSessionToken() gin.HandlerFunc
- func (wcr *WebCheckRight) CheckToken(c *gin.Context) (int, error)
- func (wcr *WebCheckRight) CheckedFilter(c *gin.Context) bool
- func (wcr *WebCheckRight) FindWebMiddlewares() []gin.HandlerFunc
- func (wcr *WebCheckRight) GetSessionToken(c *gin.Context) (int, *webdto.WebUserId, error)
- func (wcr *WebCheckRight) GetUserId(ctx *gin.Context) *webdto.WebUserId
- func (wcr *WebCheckRight) IfCheckRes() bool
- func (wcr *WebCheckRight) Info() string
- func (wcr *WebCheckRight) Init(c *gin.Context) *WebCheckRight
- func (wcr *WebCheckRight) InitDisabled(c *gin.Context) *WebCheckRight
- func (self *WebCheckRight) ParseResult(ctx *gin.Context, data interface{}) bool
- func (wcr *WebCheckRight) RegisterCheckedFilter(pathRoute string)
- func (wcr *WebCheckRight) RegisterCheckedRes(pathRoute string, res string)
- func (wcr *WebCheckRight) RegisterIrpc(irpc webiface.IrpcCheckAllowed) *WebCheckRight
- func (wcr *WebCheckRight) RegisterMiddlewareDemo()
- func (wcr *WebCheckRight) RegisterMiddlewares(middlewares ...gin.HandlerFunc)
- func (wcr *WebCheckRight) RouteFullPath(c *gin.Context) string
- func (wcr *WebCheckRight) RpcGetUserId(c *gin.Context) *webdto.WebUserId
- func (wcr *WebCheckRight) RpcSetUserId(ctx *gin.Context)
- func (wcr *WebCheckRight) SetUserId(ctx *gin.Context)
- func (wcr *WebCheckRight) StoreCheckedDbRes(router *gin.Engine)
- func (wcr *WebCheckRight) StoreCheckedRes(router *gin.Engine)
- func (wcr *WebCheckRight) TrimRoutePath(routePath string) string
- func (wcr *WebCheckRight) WebCheckAllowed(ctx *gin.Context)
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 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 (*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)
Click to show internal directories.
Click to hide internal directories.