46 lines
1.3 KiB
Go
46 lines
1.3 KiB
Go
|
// Code generated by goctl. DO NOT EDIT.
|
||
|
// Source: permission.proto
|
||
|
|
||
|
package permissionservice
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"ark-permission/gen_result/pb/permission"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/zrpc"
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
AuthorizationReq = permission.AuthorizationReq
|
||
|
CancelOneTimeTokenReq = permission.CancelOneTimeTokenReq
|
||
|
CancelTokenReq = permission.CancelTokenReq
|
||
|
CreateOneTimeTokenReq = permission.CreateOneTimeTokenReq
|
||
|
CreateOneTimeTokenResp = permission.CreateOneTimeTokenResp
|
||
|
DoTokenByDeviceIDReq = permission.DoTokenByDeviceIDReq
|
||
|
DoTokenByUIDReq = permission.DoTokenByUIDReq
|
||
|
OKResp = permission.OKResp
|
||
|
QueryTokenByUIDReq = permission.QueryTokenByUIDReq
|
||
|
RefreshTokenReq = permission.RefreshTokenReq
|
||
|
RefreshTokenResp = permission.RefreshTokenResp
|
||
|
Token = permission.Token
|
||
|
TokenResp = permission.TokenResp
|
||
|
Tokens = permission.Tokens
|
||
|
ValidationTokenReq = permission.ValidationTokenReq
|
||
|
ValidationTokenResp = permission.ValidationTokenResp
|
||
|
|
||
|
PermissionService interface {
|
||
|
}
|
||
|
|
||
|
defaultPermissionService struct {
|
||
|
cli zrpc.Client
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func NewPermissionService(cli zrpc.Client) PermissionService {
|
||
|
return &defaultPermissionService{
|
||
|
cli: cli,
|
||
|
}
|
||
|
}
|