Files
lone-services/services/support/internal/server/supportServer.go
T
2026-09-24 10:38:00 +08:00

26 lines
547 B
Go

package server
import (
"context"
support "lone-services/rpc/support/pb"
"lone-services/services/support/internal/logic"
"lone-services/services/support/internal/svc"
)
type SupportServer struct {
svcCtx *svc.ServiceContext
support.UnimplementedSupportServer
}
func NewSupportServer(svcCtx *svc.ServiceContext) *SupportServer {
return &SupportServer{
svcCtx: svcCtx,
}
}
func (s *SupportServer) Call(ctx context.Context, in *support.CallReq) (*support.Response, error) {
l := logic.NewCallLogic(ctx, s.svcCtx)
return l.Call(in)
}