mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-08 15:32:29 +08:00
24 lines
383 B
Go
24 lines
383 B
Go
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
|
|
}
|