mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-10-04 23:52:48 +08:00
feat: 新增gozero适配器
This commit is contained in:
22
examples/zeroadmin/internal/handler/routes.go
Normal file
22
examples/zeroadmin/internal/handler/routes.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
package handler
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/quarkcms/quark-go/examples/zeroadmin/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
)
|
||||
|
||||
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
server.AddRoutes(
|
||||
[]rest.Route{
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/from/:name",
|
||||
Handler: ZeroadminHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user