wangcheng0509

Results 6 comments of wangcheng0509

![image](https://user-images.githubusercontent.com/34881771/83094272-e80e0d00-a0d3-11ea-833e-a2ba2b9703db.png) 怎么能让这个jwt中间件生效?

r := gin.New() apipath := r.Group("/api") account := apipath.Group("/account") account.Use(jwt.JWT()) { base.Register(r, new(api.Account)) // account.GET("/profile", api.Profile) // account.GET("/menu", api.Menu) }

![image](https://user-images.githubusercontent.com/34881771/83095952-09242d00-a0d7-11ea-9491-553583e4bfa4.png) 好的,辛苦,我看了你的源码,应该是没兼容gin的middleware,而想要使用middleware又需要重新注册路由

如上修改,发现单表分页时又为0,紧急修改如下 ![image](https://user-images.githubusercontent.com/34881771/83827314-90dded00-a710-11ea-81a8-21b296379d4a.png)

> count方法用channel有什么好处吗 与业务sql没有依赖,异步执行,可以节省等待时间

组织:北京意锐新创 地点:北京 联系方式:[email protected] 场景:智能硬件后端 简介:还在研究,没吃透surging