This commit is contained in:
oneao committed 2025-11-26 17:31:56 +08:00
1 parent a57070f860
commit b9f728812d
22 files changed
+2892 -391

No files matched your search

@@ -1,21 +0,0 @@
// Code generated by hertz generator. DO NOT EDIT.
package hello
import (
hello "cn/oneao/base-go/biz/handler/hello"
"github.com/cloudwego/hertz/pkg/app/server"
)
/*
This file will register all the routes of the services in the master idl.
And it will update automatically when you use the "update" command for the idl.
So don't modify the contents of the file, or your code will be deleted when it is updated.
*/
// Register register routes based on the IDL 'api.${HTTP Method}' annotation.
func Register(r *server.Hertz) {
root := r.Group("/", rootMw()...)
root.GET("/hello", append(_method1Mw(), hello.Method1)...)
}
@@ -1,17 +0,0 @@
// Code generated by hertz generator.
package hello
import (
"github.com/cloudwego/hertz/pkg/app"
)
func rootMw() []app.HandlerFunc {
// your code...
return nil
}
func _method1Mw() []app.HandlerFunc {
// your code...
return nil
}
@@ -4,14 +4,12 @@ package router
import (
auth "cn/oneao/base-go/biz/router/auth"
hello "cn/oneao/base-go/biz/router/hello"
"github.com/cloudwego/hertz/pkg/app/server"
)
// GeneratedRegister registers routers generated by IDL.
func GeneratedRegister(r *server.Hertz) {
//INSERT_POINT: DO NOT DELETE THIS LINE!
hello.Register(r)
auth.Register(r)
}