add addTeams route

This commit is contained in:
2025-05-17 01:22:31 +07:00
parent b5f92e0d9b
commit f710207782
6 changed files with 525 additions and 20 deletions
+8 -1
View File
@@ -1,8 +1,11 @@
package app
import (
proto "evening_detective/proto"
"context"
proto "evening_detective/proto"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
type Server struct {
@@ -16,3 +19,7 @@ func NewServer() *Server {
func (s *Server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
return &proto.PingRsp{}, nil
}
func (s *Server) AddTeams(context.Context, *proto.AddTeamsReq) (*proto.AddTeamsRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddTeams not implemented")
}