Gin框架 1.URL中带参数,如 Get /user/10000 ,则获取的id是10000group:=engine.Group("user")group.GET("/:user_id",controller.GetUserHandler)id:=c.Param("user_id")2.gin 可以使用middleware,你在middleware里面解析token,拿到use... golang 2024-06-11 34 点赞 0 评论 51 浏览