feat:rpc gs增加gm接口

This commit is contained in:
lu.bai
2022-11-26 17:47:35 +08:00
parent 86a65e6f9b
commit 7cdcb3ec09
17 changed files with 501 additions and 17 deletions
+23
View File
@@ -0,0 +1,23 @@
package service
import (
"context"
"fmt"
"hk4e/gs/api"
"hk4e/gs/game"
)
var _ api.GMNATSRPCServer = (*GMService)(nil)
type GMService struct {
g *game.GameManager
}
func (s *GMService) Cmd(ctx context.Context, req *api.CmdRequest) (*api.CmdReply, error) {
//TODO implement me
fmt.Println("Cmd", req.FuncName, req.Param)
return &api.CmdReply{
Message: "TODO",
}, nil
}