app-cloudep-permission-server/internal/logic/tokenservice/new_one_time_token_logic.go

32 lines
850 B
Go
Raw Normal View History

package tokenservicelogic
import (
"context"
2025-02-13 11:06:51 +00:00
"code.30cm.net/digimon/app-cloudep-permission-server/gen_result/pb/permission"
2025-02-12 01:51:46 +00:00
"code.30cm.net/digimon/app-cloudep-permission-server/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
type NewOneTimeTokenLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewNewOneTimeTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *NewOneTimeTokenLogic {
return &NewOneTimeTokenLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// NewOneTimeToken 建立一次性使用例如RefreshToken
2025-02-13 11:06:51 +00:00
func (l *NewOneTimeTokenLogic) NewOneTimeToken(in *permission.CreateOneTimeTokenReq) (*permission.CreateOneTimeTokenResp, error) {
2025-02-12 01:51:46 +00:00
// todo: add your logic here and delete this line
2025-02-13 11:06:51 +00:00
return &permission.CreateOneTimeTokenResp{}, nil
}