47 lines
1.2 KiB
Go
47 lines
1.2 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.7.6
|
|
// Source: ecpm_service.proto
|
|
|
|
package ecpmservice
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm_service/ecpm"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
GetEcpmRequest = ecpm.GetEcpmRequest
|
|
GetEcpmResponse = ecpm.GetEcpmResponse
|
|
Request = ecpm.Request
|
|
Response = ecpm.Response
|
|
|
|
EcpmService interface {
|
|
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
|
GetEcpm(ctx context.Context, in *GetEcpmRequest, opts ...grpc.CallOption) (*GetEcpmResponse, error)
|
|
}
|
|
|
|
defaultEcpmService struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewEcpmService(cli zrpc.Client) EcpmService {
|
|
return &defaultEcpmService{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultEcpmService) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
|
client := ecpm.NewEcpmServiceClient(m.cli.Conn())
|
|
return client.Ping(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultEcpmService) GetEcpm(ctx context.Context, in *GetEcpmRequest, opts ...grpc.CallOption) (*GetEcpmResponse, error) {
|
|
client := ecpm.NewEcpmServiceClient(m.cli.Conn())
|
|
return client.GetEcpm(ctx, in, opts...)
|
|
}
|