feat 修改model名称

This commit is contained in:
2026-01-07 15:15:26 +08:00
parent 95c30bf081
commit dc394945fb
12 changed files with 20 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
package app package app
import ( import (
"common/log"
"fmt" "fmt"
"git.hlsq.asia/mmorpg/service-common/log"
"git.hlsq.asia/mmorpg/service-robot/config"
"github.com/judwhite/go-svc" "github.com/judwhite/go-svc"
"robot/config"
) )
type Program struct { type Program struct {

View File

@@ -1,10 +1,10 @@
package app package app
import ( import (
"common/log" "git.hlsq.asia/mmorpg/service-common/log"
"common/utils" "git.hlsq.asia/mmorpg/service-common/utils"
"git.hlsq.asia/mmorpg/service-robot/config"
"math/rand" "math/rand"
"robot/config"
) )
// ModuleBase 基础模块,或者一些零散的模块 // ModuleBase 基础模块,或者一些零散的模块

View File

@@ -1,9 +1,9 @@
package app package app
import ( import (
"common/log"
"context" "context"
"errors" "errors"
"git.hlsq.asia/mmorpg/service-common/log"
"net/http" "net/http"
_ "net/http/pprof" _ "net/http/pprof"
"sync" "sync"

View File

@@ -2,8 +2,8 @@ package app
import ( import (
"fmt" "fmt"
"robot/config" "git.hlsq.asia/mmorpg/service-robot/config"
"robot/internal/ws" "git.hlsq.asia/mmorpg/service-robot/internal/ws"
) )
// ModuleWebsocket Websocket客户端模块 // ModuleWebsocket Websocket客户端模块

View File

@@ -1,6 +1,6 @@
package config package config
import "common/config" import "git.hlsq.asia/mmorpg/service-common/config"
const path = "./config" const path = "./config"

4
go.mod
View File

@@ -3,7 +3,7 @@ module git.hlsq.asia/mmorpg/service-robot
go 1.23.1 go 1.23.1
require ( 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/gorilla/websocket v1.5.3
github.com/judwhite/go-svc v1.2.1 github.com/judwhite/go-svc v1.2.1
google.golang.org/protobuf v1.36.9 google.golang.org/protobuf v1.36.9
@@ -65,5 +65,3 @@ require (
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
replace common => ../common

2
go.sum
View File

@@ -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 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/bwmarrin/snowflake v0.3.0 h1:xm67bEhkKh6ij1790JB83OujPR5CzNe8QuQqAgISZN0= github.com/bwmarrin/snowflake v0.3.0 h1:xm67bEhkKh6ij1790JB83OujPR5CzNe8QuQqAgISZN0=

View File

@@ -2,14 +2,14 @@ package ws
import ( import (
"bytes" "bytes"
"common/log"
"common/proto/sc/sc_pb"
"common/utils"
"context" "context"
"crypto/tls" "crypto/tls"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "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" "github.com/gorilla/websocket"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"io" "io"

View File

@@ -1,8 +1,8 @@
package ws package ws
import ( import (
"common/log" "git.hlsq.asia/mmorpg/service-common/log"
"common/proto/sc/sc_pb" "git.hlsq.asia/mmorpg/service-common/proto/sc/sc_pb"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"math" "math"
"math/rand" "math/rand"

View File

@@ -1,7 +1,7 @@
package ws package ws
import ( import (
"robot/config" "git.hlsq.asia/mmorpg/service-robot/config"
"time" "time"
) )

View File

@@ -1,6 +1,6 @@
package ws 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 var router map[sc_pb.MessageID]BaseRouter

View File

@@ -2,8 +2,8 @@ package main
import ( import (
"fmt" "fmt"
"git.hlsq.asia/mmorpg/service-robot/app"
"github.com/judwhite/go-svc" "github.com/judwhite/go-svc"
"robot/app"
"syscall" "syscall"
) )