:refactor: 更新依赖路径,将xybot模块更改为wechat-client/xybot
All checks were successful
BuildImage / build-image (push) Successful in 7m28s

This commit is contained in:
李寻欢 2025-04-30 15:40:19 +08:00
parent a81b85977f
commit 33b53869bd
12 changed files with 18 additions and 20 deletions

View File

@ -33,9 +33,9 @@ auth:
adminToken: "admin-token-change-me" # 密码
tokenExpiry: 24 # 登录有效期(小时)
logto:
endpoint: ""
appId: ""
appSecret: ""
endpoint: "https://logto.wjg95.cn/"
appId: "ib3tgt6nitenckuzuw1ck"
appSecret: "9iMwD6ndtGjh9bFg3ABVHYkj5ZGXdFZM"
logger:
level: "debug"

6
go.mod
View File

@ -3,9 +3,10 @@ module gitee.ltd/lxh/wechat-robot
go 1.24.0
require (
gitee.ltd/lxh/xybot v0.0.6
gitee.ltd/wechat-client/xybot v0.0.1
github.com/docker/docker v28.1.1+incompatible
github.com/docker/go-connections v0.5.0
github.com/fsnotify/fsnotify v1.9.0
github.com/go-co-op/gocron/v2 v2.16.1
github.com/goccy/go-json v0.10.5
github.com/gofiber/fiber/v2 v2.52.6
@ -15,6 +16,7 @@ require (
github.com/google/uuid v1.6.0
github.com/logto-io/go/v2 v2.0.0
github.com/minio/minio-go/v7 v7.0.91
github.com/redis/go-redis/v9 v9.7.3
github.com/spf13/viper v1.20.1
github.com/valyala/fasthttp v1.60.0
gorm.io/driver/mysql v1.5.7
@ -36,7 +38,6 @@ require (
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/fasthttp/websocket v1.5.3 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-jose/go-jose/v4 v4.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
@ -70,7 +71,6 @@ require (
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/redis/go-redis/v9 v9.7.3 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/rs/xid v1.6.0 // indirect

6
go.sum
View File

@ -1,9 +1,7 @@
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
gitee.ltd/lxh/xybot v0.0.5 h1:kgwJktO/p7WbywUuAGTPH2V4VOta6dnYs1CXz6qVvZU=
gitee.ltd/lxh/xybot v0.0.5/go.mod h1:jYfEAQ3WPsST/PY4fEEVFjU6KtMocxn3sQi78I+vdxc=
gitee.ltd/lxh/xybot v0.0.6 h1:wgNz0gtA3rwQsdkDcgKS7tJZ33f96oxLbXSn+0wlfdY=
gitee.ltd/lxh/xybot v0.0.6/go.mod h1:jYfEAQ3WPsST/PY4fEEVFjU6KtMocxn3sQi78I+vdxc=
gitee.ltd/wechat-client/xybot v0.0.1 h1:aB1bzHLZkm8soierTsNsZ7h9WA1mx4bsYXNhrIAM0qg=
gitee.ltd/wechat-client/xybot v0.0.1/go.mod h1:YbAKeAvZqDe99hmwB/RXksrHl1ij5BvtSyVul7cak1E=
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8=
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=

View File

@ -5,7 +5,7 @@ import (
"errors"
"gitee.ltd/lxh/wechat-robot/internal/config"
"gitee.ltd/lxh/wechat-robot/internal/tasks"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"github.com/gofiber/fiber/v2/log"
"strconv"
"time"

View File

@ -3,7 +3,7 @@ package handler
import (
"context"
"errors"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"github.com/gofiber/fiber/v2/log"
"strconv"
"strings"

View File

@ -2,8 +2,8 @@ package tasks
import (
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/xybot"
"gitee.ltd/lxh/xybot/friend"
"gitee.ltd/wechat-client/xybot"
"gitee.ltd/wechat-client/xybot/friend"
"github.com/gofiber/fiber/v2/log"
"slices"
"strings"

View File

@ -4,7 +4,7 @@ import (
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/wechat-robot/internal/types"
messageHandler "gitee.ltd/lxh/wechat-robot/pkg/message"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"strings"
"time"
)

View File

@ -2,7 +2,7 @@ package tasks
import (
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"github.com/go-co-op/gocron/v2"
"github.com/gofiber/fiber/v2/log"
"github.com/google/uuid"

View File

@ -6,7 +6,7 @@ import (
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/wechat-robot/internal/utils"
"gitee.ltd/lxh/wechat-robot/internal/wechat"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"github.com/gofiber/fiber/v2/log"
"net/url"
"slices"

View File

@ -3,7 +3,7 @@ package message
import (
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/wechat-robot/internal/types"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
)
// Handler

View File

@ -6,7 +6,7 @@ import (
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/wechat-robot/internal/types"
"gitee.ltd/lxh/wechat-robot/internal/wechat"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"github.com/gofiber/fiber/v2/log"
)

View File

@ -5,7 +5,7 @@ import (
"gitee.ltd/lxh/wechat-robot/internal/minio"
"gitee.ltd/lxh/wechat-robot/internal/model"
"gitee.ltd/lxh/wechat-robot/internal/wechat"
"gitee.ltd/lxh/xybot"
"gitee.ltd/wechat-client/xybot"
"github.com/gofiber/fiber/v2/log"
"strconv"
)