Comments (4)
不用,我修改一下入口就可以了。将IRouter 改成 IRoutes
// IRouter defines all router handle interface includes single and group router.
type IRouter interface {
IRoutes
Group(string, ...HandlerFunc) *RouterGroup
}
他们关系是这样的。可以直接修改,内容不变
from ginrpc.
好的,谢谢, 我写成这样就可以了
gAuth := g.Group("")
gAuth.Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
{
gAuth.GET("/nilcheckrole", nil)
var autoRoute = ginrpc.New()
autoRoute.Register(gAuth, new(adminApi.AdminInfos))
}
上面use返回的是IRoutes
from ginrpc.
已更新:dd2e71d
麻烦验证一下,成功了请关闭此issue
from ginrpc.
已验证
from ginrpc.
Related Issues (14)
- github.com/xxjwxc/[email protected]: reading github.com/xxjwxc/public/go.mod at revision v1.0.2: unknown revision v1.0.2 HOT 3
- 怎么添加HandlerFunc HOT 9
- but does not contain package HOT 1
- 无法生成gmsec/routers HOT 1
- Arm64 run panic: package parsing failed:can not find main files "runtime/asm_amd64.s" HOT 2
- 请问这个组件实现的rpc能和gin的HTTP接口共存吗? HOT 7
- 基于此库进行了一些修改自用, 发现的几个问题 HOT 3
- 您好,认真阅读了您的代码,有些问题请教 HOT 1
- go get -u github.com/xxjwxc/ginrpc@master HOT 1
- 注解路由未生效 HOT 7
- Bind Path Param HOT 1
- 自动参数绑定,传参错误时,解析报错 HOT 5
- ginrpc不支持gin指令 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ginrpc.