// Code generated by goctl. DO NOT EDIT. // Source: tweeting.proto package server import ( "context" "app-cloudep-tweeting-service/gen_result/pb/tweeting" "app-cloudep-tweeting-service/internal/logic/socialnetworkservice" "app-cloudep-tweeting-service/internal/svc" ) type SocialNetworkServiceServer struct { svcCtx *svc.ServiceContext tweeting.UnimplementedSocialNetworkServiceServer } func NewSocialNetworkServiceServer(svcCtx *svc.ServiceContext) *SocialNetworkServiceServer { return &SocialNetworkServiceServer{ svcCtx: svcCtx, } } func (s *SocialNetworkServiceServer) AddUserToNetwork(ctx context.Context, in *tweeting.AddUserToNetworkReq) (*tweeting.OKResp, error) { l := socialnetworkservicelogic.NewAddUserToNetworkLogic(ctx, s.svcCtx) return l.AddUserToNetwork(in) }