This commit is contained in:
oneao committed 2025-11-28 17:31:58 +08:00
1 parent d03ac2b00a
commit cf4291652a
43 files changed
+359 -6254

No files matched your search

@@ -1,27 +0,0 @@
// Code generated by hertz generator. DO NOT EDIT.
package auth
import (
auth "cn/oneao/base-go/biz/handler/auth"
"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()...)
{
_auth := root.Group("/auth", _authMw()...)
{
_login := _auth.Group("/login", _loginMw()...)
_login.POST("/default", append(_logindefaultMw(), auth.LoginDefault)...)
}
}
}
@@ -1,27 +0,0 @@
// Code generated by hertz generator.
package auth
import (
"github.com/cloudwego/hertz/pkg/app"
)
func rootMw() []app.HandlerFunc {
// your code...
return nil
}
func _authMw() []app.HandlerFunc {
// your code...
return nil
}
func _loginMw() []app.HandlerFunc {
// your code...
return nil
}
func _logindefaultMw() []app.HandlerFunc {
// your code...
return nil
}
@@ -1,15 +0,0 @@
// Code generated by hertz generator. DO NOT EDIT.
package router
import (
auth "cn/oneao/base-go/biz/router/auth"
"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!
auth.Register(r)
}