52 lines
1.5 KiB
Go
52 lines
1.5 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// Source: permission.proto
|
|
|
|
package roleservice
|
|
|
|
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
|
|
|
|
RoleService interface {
|
|
Ping(ctx context.Context, in *OKResp, opts ...grpc.CallOption) (*OKResp, error)
|
|
}
|
|
|
|
defaultRoleService struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewRoleService(cli zrpc.Client) RoleService {
|
|
return &defaultRoleService{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultRoleService) Ping(ctx context.Context, in *OKResp, opts ...grpc.CallOption) (*OKResp, error) {
|
|
client := permission.NewRoleServiceClient(m.cli.Conn())
|
|
return client.Ping(ctx, in, opts...)
|
|
}
|