feat 修改model名称
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"common/log"
|
||||
"fmt"
|
||||
"git.hlsq.asia/mmorpg/service-common/log"
|
||||
"git.hlsq.asia/mmorpg/service-robot/config"
|
||||
"github.com/judwhite/go-svc"
|
||||
"robot/config"
|
||||
)
|
||||
|
||||
type Program struct {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"common/log"
|
||||
"common/utils"
|
||||
"git.hlsq.asia/mmorpg/service-common/log"
|
||||
"git.hlsq.asia/mmorpg/service-common/utils"
|
||||
"git.hlsq.asia/mmorpg/service-robot/config"
|
||||
"math/rand"
|
||||
"robot/config"
|
||||
)
|
||||
|
||||
// ModuleBase 基础模块,或者一些零散的模块
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"common/log"
|
||||
"context"
|
||||
"errors"
|
||||
"git.hlsq.asia/mmorpg/service-common/log"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"sync"
|
||||
|
||||
@@ -2,8 +2,8 @@ package app
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"robot/config"
|
||||
"robot/internal/ws"
|
||||
"git.hlsq.asia/mmorpg/service-robot/config"
|
||||
"git.hlsq.asia/mmorpg/service-robot/internal/ws"
|
||||
)
|
||||
|
||||
// ModuleWebsocket Websocket客户端模块
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package config
|
||||
|
||||
import "common/config"
|
||||
import "git.hlsq.asia/mmorpg/service-common/config"
|
||||
|
||||
const path = "./config"
|
||||
|
||||
|
||||
4
go.mod
4
go.mod
@@ -3,7 +3,7 @@ module git.hlsq.asia/mmorpg/service-robot
|
||||
go 1.23.1
|
||||
|
||||
require (
|
||||
common v0.0.0-00010101000000-000000000000
|
||||
git.hlsq.asia/mmorpg/service-common v0.0.0-20260107061047-e02e56781e78
|
||||
github.com/gorilla/websocket v1.5.3
|
||||
github.com/judwhite/go-svc v1.2.1
|
||||
google.golang.org/protobuf v1.36.9
|
||||
@@ -65,5 +65,3 @@ require (
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
replace common => ../common
|
||||
|
||||
2
go.sum
2
go.sum
@@ -1,3 +1,5 @@
|
||||
git.hlsq.asia/mmorpg/service-common v0.0.0-20260107061047-e02e56781e78 h1:4CP8w5jHDOdN7hym8YrtioxNDd7PS2WcZDrO6dtY344=
|
||||
git.hlsq.asia/mmorpg/service-common v0.0.0-20260107061047-e02e56781e78/go.mod h1:xv6m1I2jUA6mudKVznygpnzMoshBQarthHD1QnkW4qc=
|
||||
github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
|
||||
github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
||||
github.com/bwmarrin/snowflake v0.3.0 h1:xm67bEhkKh6ij1790JB83OujPR5CzNe8QuQqAgISZN0=
|
||||
|
||||
@@ -2,14 +2,14 @@ package ws
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"common/log"
|
||||
"common/proto/sc/sc_pb"
|
||||
"common/utils"
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.hlsq.asia/mmorpg/service-common/log"
|
||||
"git.hlsq.asia/mmorpg/service-common/proto/sc/sc_pb"
|
||||
"git.hlsq.asia/mmorpg/service-common/utils"
|
||||
"github.com/gorilla/websocket"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"io"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ws
|
||||
|
||||
import (
|
||||
"common/log"
|
||||
"common/proto/sc/sc_pb"
|
||||
"git.hlsq.asia/mmorpg/service-common/log"
|
||||
"git.hlsq.asia/mmorpg/service-common/proto/sc/sc_pb"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"math"
|
||||
"math/rand"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ws
|
||||
|
||||
import (
|
||||
"robot/config"
|
||||
"git.hlsq.asia/mmorpg/service-robot/config"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package ws
|
||||
|
||||
import "common/proto/sc/sc_pb"
|
||||
import "git.hlsq.asia/mmorpg/service-common/proto/sc/sc_pb"
|
||||
|
||||
var router map[sc_pb.MessageID]BaseRouter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user