// Code generated by goctl. DO NOT EDIT. // goctl 1.7.6 // Source: ecpm.proto package server import ( "context" douyin_ecpm_calculation_service2 "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm/ecpm" logic2 "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm/internal/logic" "gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm/internal/svc" ) type DouyinEcpmCalculationServiceServer struct { svcCtx *svc.ServiceContext douyin_ecpm_calculation_service2.UnimplementedDouyinEcpmCalculationServiceServer } func NewDouyinEcpmCalculationServiceServer(svcCtx *svc.ServiceContext) *DouyinEcpmCalculationServiceServer { return &DouyinEcpmCalculationServiceServer{ svcCtx: svcCtx, } } func (s *DouyinEcpmCalculationServiceServer) Ping(ctx context.Context, in *douyin_ecpm_calculation_service2.Request) (*douyin_ecpm_calculation_service2.Response, error) { l := logic2.NewPingLogic(ctx, s.svcCtx) return l.Ping(in) } func (s *DouyinEcpmCalculationServiceServer) GetEcpm(ctx context.Context, in *douyin_ecpm_calculation_service2.GetEcpmRequest) (*douyin_ecpm_calculation_service2.GetEcpmResponse, error) { l := logic2.NewGetEcpmLogic(ctx, s.svcCtx) return l.GetEcpm(in) }