token

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockTokenLogic

type BlockTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewBlockTokenLogic

func NewBlockTokenLogic(r *http.Request, svcCtx *svc.ServiceContext) *BlockTokenLogic

拉黑某一个令牌

func (*BlockTokenLogic) BlockToken

func (l *BlockTokenLogic) BlockToken(req *types.BlockTokenRequest) (resp *types.BaseResponse, err error)

type CleanExpiredTokensLogic

type CleanExpiredTokensLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCleanExpiredTokensLogic

func NewCleanExpiredTokensLogic(r *http.Request, svcCtx *svc.ServiceContext) *CleanExpiredTokensLogic

清理过期令牌

func (*CleanExpiredTokensLogic) CleanExpiredTokens

type DeleteTokenLogic

type DeleteTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteTokenLogic

func NewDeleteTokenLogic(r *http.Request, svcCtx *svc.ServiceContext) *DeleteTokenLogic

删除令牌

func (*DeleteTokenLogic) DeleteToken

func (l *DeleteTokenLogic) DeleteToken(req *types.ID32Request) (resp *types.BaseResponse, err error)

type ListTokenLogic

type ListTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListTokenLogic

func NewListTokenLogic(r *http.Request, svcCtx *svc.ServiceContext) *ListTokenLogic

获取令牌列表

func (*ListTokenLogic) ListToken

func (l *ListTokenLogic) ListToken(req *types.TokenListRequest) (resp *types.TokenListResponse, err error)

type UnblockTokenLogic

type UnblockTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUnblockTokenLogic

func NewUnblockTokenLogic(r *http.Request, svcCtx *svc.ServiceContext) *UnblockTokenLogic

解封某一个令牌

func (*UnblockTokenLogic) UnblockToken

func (l *UnblockTokenLogic) UnblockToken(req *types.BlockTokenRequest) (resp *types.BaseResponse, err error)

Jump to

Keyboard shortcuts

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