```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(dict): 添加字典数据压缩加密功能

- 在字典数据接口中集成压缩和加密机制
- 实现Gzip压缩、XOR加密和Base64编码流程
- 新增CompressAndEncrypt和DecryptAndDecompress工具函数
- 在middleware中启用压缩中间件支持
```
This commit is contained in:
昔念
2026-02-28 00:21:33 +08:00
parent 9485c510c0
commit 8bc3fd3cb7
3 changed files with 154 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ func init() {
tt.ServeHTTP(r.Response.Writer, r.Request)
})
g.Server().Use(CompressMiddleware)
g.Server().BindHandler("/server/*", func(r *ghttp.Request) {
servert := new(ServerHandler)
id := gconv.Uint16(r.URL.Query().Get("id"))