28 lines
899 B
Go
28 lines
899 B
Go
// Code generated by hertz generator. DO NOT EDIT.
|
|
|
|
package space
|
|
|
|
import (
|
|
space "allapp/biz/handler/space"
|
|
"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()...)
|
|
{
|
|
_space := root.Group("/space", _spaceMw()...)
|
|
_space.POST("/join", append(_joinspaceMw(), space.JoinSpace)...)
|
|
_space.POST("/kick", append(_kickoutuserMw(), space.KickOutUser)...)
|
|
_space.POST("/quit", append(_quitspaceMw(), space.QuitSpace)...)
|
|
_space.POST("/users", append(_listspaceusersMw(), space.ListSpaceUsers)...)
|
|
}
|
|
}
|