mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
goctl api go generate atdoc struct field
This commit is contained in:
parent
c94cacc720
commit
c3baa0af10
@ -234,6 +234,7 @@ func WithMiddleware(middleware Middleware, rs ...Route) []Route {
|
||||
for i := range rs {
|
||||
route := rs[i]
|
||||
routes[i] = Route{
|
||||
AtDoc: route.AtDoc,
|
||||
Method: route.Method,
|
||||
Path: route.Path,
|
||||
Handler: middleware(route.Handler),
|
||||
@ -265,6 +266,7 @@ func WithPrefix(group string) RouteOption {
|
||||
for _, rt := range r.routes {
|
||||
p := path.Join(group, rt.Path)
|
||||
routes = append(routes, Route{
|
||||
AtDoc: rt.AtDoc,
|
||||
Method: rt.Method,
|
||||
Path: p,
|
||||
Handler: rt.Handler,
|
||||
|
Loading…
Reference in New Issue
Block a user