feat(base): 添加邮箱注册码功能及用户注册接口 - 在 `sessionManager` 中新增邮件注册码缓存管理实例和相关方法 - 实现生成、保存、验证、删除邮件注册码的逻辑 - 新增 `/reg` 和 `/email` 接口用于用户注册和发送验证码 - 引入 `golang-lru` 依赖以支持限流缓存功能 - 调整包导入顺序,优化代码结构 ```
45 lines
1.5 KiB
Go
45 lines
1.5 KiB
Go
module blazing/modules/base
|
|
|
|
go 1.18
|
|
|
|
require (
|
|
github.com/gogf/gf/v2 v2.6.3
|
|
github.com/golang-jwt/jwt/v4 v4.5.0
|
|
)
|
|
|
|
require (
|
|
github.com/dolthub/maphash v0.1.0 // indirect
|
|
github.com/hashicorp/golang-lru v1.0.2 // indirect
|
|
github.com/klauspost/compress v1.17.9 // indirect
|
|
github.com/stretchr/testify v1.11.1 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.4.0 // indirect
|
|
github.com/clbanning/mxj/v2 v2.7.0 // indirect
|
|
github.com/fatih/color v1.18.0 // indirect
|
|
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
|
github.com/go-logr/logr v1.4.2 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/gorilla/websocket v1.5.1 // indirect
|
|
github.com/grokify/html-strip-tags-go v0.1.0 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/lxzan/gws v1.8.9
|
|
github.com/magiconair/properties v1.8.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
|
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
|
go.opentelemetry.io/otel v1.24.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.24.0 // indirect
|
|
go.opentelemetry.io/otel/sdk v1.24.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.24.0 // indirect
|
|
golang.org/x/net v0.33.0 // indirect
|
|
golang.org/x/sys v0.30.0 // indirect
|
|
golang.org/x/text v0.22.0 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|