feat(config): 重构密钥配置获取逻辑

- 移除 GetRedisConfig 函数- 修改 GetSecret 函数通过 HTTP 请求获取 AES 加密参数- 添加 json 和 github.com/go-resty/resty/v2依赖
- 升级多个依赖包版本,包括 lancet、excelize、go-deepcopy 等
- 更新 go.mod 和 go.sum 文件中的依赖版本
- 优化 token 服务中密钥获取错误处理逻辑
This commit is contained in:
danial
2025-11-13 14:33:29 +08:00
parent b505d305ef
commit 8e033b540e
4 changed files with 52 additions and 51 deletions

19
go.mod
View File

@@ -1,17 +1,17 @@
module boss
go 1.24
go 1.24.0
require (
github.com/beego/beego/v2 v2.3.8
github.com/duke-git/lancet/v2 v2.3.6
github.com/duke-git/lancet/v2 v2.3.8
github.com/go-redis/redis/v7 v7.4.1
github.com/go-sql-driver/mysql v1.9.3
github.com/gogf/gf v1.16.9
github.com/rs/xid v1.6.0
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
github.com/xlzd/gotp v0.1.0
github.com/xuri/excelize/v2 v2.9.1
github.com/xuri/excelize/v2 v2.10.0
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
)
@@ -22,6 +22,7 @@ require (
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fatih/color v1.12.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-resty/resty/v2 v2.16.5 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
@@ -34,16 +35,16 @@ require (
github.com/richardlehane/mscfb v1.0.4 // indirect
github.com/richardlehane/msoleps v1.0.4 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
github.com/tiendc/go-deepcopy v1.6.0 // indirect
github.com/tiendc/go-deepcopy v1.7.1 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/xuri/efp v0.0.1 // indirect
github.com/xuri/nfp v0.0.1 // indirect
github.com/xuri/nfp v0.0.2-0.20250530014748-2ddeb826f9a9 // indirect
go.opentelemetry.io/otel v1.11.2 // indirect
go.opentelemetry.io/otel/trace v1.11.2 // indirect
golang.org/x/crypto v0.38.0 // indirect
golang.org/x/net v0.40.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/text v0.25.0 // indirect
golang.org/x/crypto v0.43.0 // indirect
golang.org/x/net v0.46.0 // indirect
golang.org/x/sys v0.37.0 // indirect
golang.org/x/text v0.30.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)