2025-08-04 01:55:56 +00:00
|
|
|
// 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 (
|
2025-08-04 14:02:01 +00:00
|
|
|
ListSymbolsRequest = app_cloudep_blockchain.ListSymbolsRequest
|
|
|
|
ListSymbolsResponse = app_cloudep_blockchain.ListSymbolsResponse
|
|
|
|
NoneReq = app_cloudep_blockchain.NoneReq
|
|
|
|
OKResp = app_cloudep_blockchain.OKResp
|
|
|
|
Symbol = app_cloudep_blockchain.Symbol
|
2025-08-04 01:55:56 +00:00
|
|
|
|
|
|
|
BlockchainService interface {
|
2025-08-04 14:02:01 +00:00
|
|
|
// ListSymbols retrieves all available trading symbols.
|
|
|
|
ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error)
|
|
|
|
// Ping is a health-check endpoint.
|
2025-08-04 01:55:56 +00:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-08-04 14:02:01 +00:00
|
|
|
// ListSymbols retrieves all available trading symbols.
|
|
|
|
func (m *defaultBlockchainService) ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error) {
|
|
|
|
client := app_cloudep_blockchain.NewBlockchainServiceClient(m.cli.Conn())
|
|
|
|
return client.ListSymbols(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ping is a health-check endpoint.
|
2025-08-04 01:55:56 +00:00
|
|
|
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...)
|
|
|
|
}
|