package logic import ( "context" "ark-permission/gen_result/pb/permission" "ark-permission/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 func (l *NewOneTimeTokenLogic) NewOneTimeToken(in *permission.CreateOneTimeTokenReq) (*permission.CreateOneTimeTokenResp, error) { // todo: add your logic here and delete this line return &permission.CreateOneTimeTokenResp{}, nil }