feat: add support
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user