35 lines
909 B
Go
35 lines
909 B
Go
|
// 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)
|
||
|
}
|