39 lines
890 B
Go
39 lines
890 B
Go
|
// Code generated by goctl. DO NOT EDIT.
|
||
|
// goctl 1.8.5
|
||
|
// Source: blockchain.proto
|
||
|
|
||
|
package blockchainservice
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"blockchain/gen_result/pb/code.30cm.net/digimon/app-cloudep-blockchain"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/zrpc"
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
NoneReq = app_cloudep_blockchain.NoneReq
|
||
|
OKResp = app_cloudep_blockchain.OKResp
|
||
|
|
||
|
BlockchainService interface {
|
||
|
Ping(ctx context.Context, in *NoneReq, opts ...grpc.CallOption) (*OKResp, error)
|
||
|
}
|
||
|
|
||
|
defaultBlockchainService struct {
|
||
|
cli zrpc.Client
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func NewBlockchainService(cli zrpc.Client) BlockchainService {
|
||
|
return &defaultBlockchainService{
|
||
|
cli: cli,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (m *defaultBlockchainService) Ping(ctx context.Context, in *NoneReq, opts ...grpc.CallOption) (*OKResp, error) {
|
||
|
client := app_cloudep_blockchain.NewBlockchainServiceClient(m.cli.Conn())
|
||
|
return client.Ping(ctx, in, opts...)
|
||
|
}
|