33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
// Code generated by hertz generator. DO NOT EDIT.
|
|
|
|
package space
|
|
|
|
import (
|
|
space "cn/oneao/base-go/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("/delete", append(_deletespaceMw(), space.DeleteSpace)...)
|
|
_space.POST("/insert", append(_insertspaceMw(), space.InsertSpace)...)
|
|
}
|
|
{
|
|
_space_user := root.Group("/space_user", _space_userMw()...)
|
|
_space_user.POST("/exit", append(_exitspaceMw(), space.ExitSpace)...)
|
|
_space_user.POST("/list", append(_listspaceusersMw(), space.ListSpaceUsers)...)
|
|
_space_user.POST("/remove", append(_removespaceuserMw(), space.RemoveSpaceUser)...)
|
|
_space_user.POST("/updateRole", append(_updatespaceuserroleMw(), space.UpdateSpaceUserRole)...)
|
|
}
|
|
}
|