AchoBeta / AchoBeta-CloudPlatform

3 stars 1 forks source link

重写分 group 引入中间件的逻辑 #5

Open jettcc opened 7 months ago

jettcc commented 7 months ago

原有的中间件逻辑是基于 gin 的, 迁移 hertz 之后需要重写一套, 具体代码在 feature-reconstruct-hertz分支下的pkg/router/web.go#registerRouter

文档参考: https://www.cloudwego.io/zh/docs/hertz/tutorials/basic-feature/middleware/#%E8%B7%AF%E7%94%B1%E7%BB%84%E7%BA%A7%E5%88%AB%E4%B8%AD%E9%97%B4%E4%BB%B6

dbinggo commented 7 months ago

来了

jettcc commented 7 months ago

这部分逻辑和路由一起实现在 manager 里了