youtu_grpc/app/ecpm/internal/server/ecpm_server.go

34 lines
1.1 KiB
Go
Raw Normal View History

2025-02-07 15:18:26 +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-07 15:18:26 +08:00
package server
import (
"context"
2025-02-14 10:30:15 +08:00
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"
2025-02-07 15:18:26 +08:00
)
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)
}