46 lines
1.5 KiB
Go
Raw Normal View History

2025-02-05 18:45:49 +08:00
// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.6
2025-02-14 10:30:15 +08:00
// Source: ecpm.proto
2025-02-05 18:45:49 +08:00
2025-02-14 10:30:15 +08:00
package ecpm_client
2025-02-05 18:45:49 +08:00
import (
"context"
2025-02-14 10:30:15 +08:00
douyin_ecpm_calculation_service2 "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm/ecpm"
2025-02-05 18:45:49 +08:00
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
)
type (
2025-02-07 15:18:26 +08:00
GetEcpmRequest = douyin_ecpm_calculation_service2.GetEcpmRequest
GetEcpmResponse = douyin_ecpm_calculation_service2.GetEcpmResponse
Request = douyin_ecpm_calculation_service2.Request
Response = douyin_ecpm_calculation_service2.Response
2025-02-05 18:45:49 +08:00
DouyinEcpmCalculationService interface {
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
GetEcpm(ctx context.Context, in *GetEcpmRequest, opts ...grpc.CallOption) (*GetEcpmResponse, error)
}
defaultDouyinEcpmCalculationService struct {
cli zrpc.Client
}
)
func NewDouyinEcpmCalculationService(cli zrpc.Client) DouyinEcpmCalculationService {
return &defaultDouyinEcpmCalculationService{
cli: cli,
}
}
func (m *defaultDouyinEcpmCalculationService) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
2025-02-07 15:18:26 +08:00
client := douyin_ecpm_calculation_service2.NewDouyinEcpmCalculationServiceClient(m.cli.Conn())
2025-02-05 18:45:49 +08:00
return client.Ping(ctx, in, opts...)
}
func (m *defaultDouyinEcpmCalculationService) GetEcpm(ctx context.Context, in *GetEcpmRequest, opts ...grpc.CallOption) (*GetEcpmResponse, error) {
2025-02-07 15:18:26 +08:00
client := douyin_ecpm_calculation_service2.NewDouyinEcpmCalculationServiceClient(m.cli.Conn())
2025-02-05 18:45:49 +08:00
return client.GetEcpm(ctx, in, opts...)
}