音视频模块初始化

This commit is contained in:
2025-07-25 18:13:31 +08:00
parent ab9db0e883
commit a8d45ca7a0
30 changed files with 2921 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
// Code generated by hertz generator. DO NOT EDIT.
package audioAndVideoCalls
import (
audioAndVideoCalls "audioAndVideoCalls/biz/handler/audioAndVideoCalls"
"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("/audioCall", append(_hellomethodMw(), audioAndVideoCalls.HelloMethod)...)
}

View File

@@ -0,0 +1,17 @@
// Code generated by hertz generator.
package audioAndVideoCalls
import (
"github.com/cloudwego/hertz/pkg/app"
)
func rootMw() []app.HandlerFunc {
// your code...
return nil
}
func _hellomethodMw() []app.HandlerFunc {
// your code...
return nil
}