feat: 新增gozero适配器

This commit is contained in:
tangtanglove
2023-01-30 16:09:34 +08:00
parent 2fbf003eea
commit 56c392c9b3
16 changed files with 1860 additions and 22 deletions

View 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),
},
},
)
}