// Code generated by goctl. DO NOT EDIT.
// Source: pcmCore.proto

package server

import (
	"context"

	"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/logic/pcmcore"
	"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/internal/svc"
	"gitlink.org.cn/JointCloud/pcm-coordinator/rpc/pcmCore"
)

type PcmCoreServer struct {
	svcCtx *svc.ServiceContext
	pcmCore.UnimplementedPcmCoreServer
}

func NewPcmCoreServer(svcCtx *svc.ServiceContext) *PcmCoreServer {
	return &PcmCoreServer{
		svcCtx: svcCtx,
	}
}

// SyncInfo Synchronous data information
func (s *PcmCoreServer) SyncInfo(ctx context.Context, in *pcmCore.SyncInfoReq) (*pcmCore.SyncInfoResp, error) {
	l := pcmcorelogic.NewSyncInfoLogic(ctx, s.svcCtx)
	return l.SyncInfo(in)
}

// InfoList
func (s *PcmCoreServer) InfoList(ctx context.Context, in *pcmCore.InfoListReq) (*pcmCore.InfoListResp, error) {
	l := pcmcorelogic.NewInfoListLogic(ctx, s.svcCtx)
	return l.InfoList(in)
}
