32 lines
788 B
Go
32 lines
788 B
Go
package tokenservicelogic
|
||
|
||
import (
|
||
"context"
|
||
|
||
"code.30cm.net/digimon/app-cloudep-permission-server/gen_result/pb/permission"
|
||
"code.30cm.net/digimon/app-cloudep-permission-server/internal/svc"
|
||
|
||
"github.com/zeromicro/go-zero/core/logx"
|
||
)
|
||
|
||
type CancelTokenLogic struct {
|
||
ctx context.Context
|
||
svcCtx *svc.ServiceContext
|
||
logx.Logger
|
||
}
|
||
|
||
func NewCancelTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CancelTokenLogic {
|
||
return &CancelTokenLogic{
|
||
ctx: ctx,
|
||
svcCtx: svcCtx,
|
||
Logger: logx.WithContext(ctx),
|
||
}
|
||
}
|
||
|
||
// CancelToken 取消 Token,也包含他裡面的 One Time Toke
|
||
func (l *CancelTokenLogic) CancelToken(in *permission.CancelTokenReq) (*permission.OKResp, error) {
|
||
// todo: add your logic here and delete this line
|
||
|
||
return &permission.OKResp{}, nil
|
||
}
|