youtu_grpc/app/ecpm_service/internal/server/ecpm_service_server.go

35 lines
909 B
Go
Raw Normal View History

2025-02-14 17:30:53 +08:00
// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.6
// Source: ecpm_service.proto
package server
import (
"context"
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm_service/ecpm"
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm_service/internal/logic"
"gitea.youtukeji.com.cn/youtu/youtu_grpc/app/ecpm_service/internal/svc"
)
type EcpmServiceServer struct {
svcCtx *svc.ServiceContext
ecpm.UnimplementedEcpmServiceServer
}
func NewEcpmServiceServer(svcCtx *svc.ServiceContext) *EcpmServiceServer {
return &EcpmServiceServer{
svcCtx: svcCtx,
}
}
func (s *EcpmServiceServer) Ping(ctx context.Context, in *ecpm.Request) (*ecpm.Response, error) {
l := logic.NewPingLogic(ctx, s.svcCtx)
return l.Ping(in)
}
func (s *EcpmServiceServer) GetEcpm(ctx context.Context, in *ecpm.GetEcpmRequest) (*ecpm.GetEcpmResponse, error) {
l := logic.NewGetEcpmLogic(ctx, s.svcCtx)
return l.GetEcpm(in)
}