feat:rpc gs增加gm接口

This commit is contained in:
lu.bai committed 2022-11-26 17:47:35 +08:00
1 parent 86a65e6f9b
commit 7cdcb3ec09
17 files changed
+501 -17

No files matched your search

+4 -1
View File
@@ -5,16 +5,19 @@ import (
"strconv"
"hk4e/common/config"
"hk4e/gm/rpc_client"
"hk4e/pkg/logger"
"github.com/gin-gonic/gin"
)
type Controller struct {
rpc *rpc_client.Client
}
func NewController() (r *Controller) {
func NewController(rpc *rpc_client.Client) (r *Controller) {
r = new(Controller)
r.rpc = rpc
go r.registerRouter()
return r
}