mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
feat:rpc gs增加gm接口
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user