This commit is contained in:
oneao committed 2025-12-02 22:44:12 +08:00
1 parent f7b0c6ad2f
commit e81f605999
23 files changed
+1286 -413

No files matched your search

@@ -20,3 +20,38 @@ func _insertspaceMw() []app.HandlerFunc {
// your code...
return nil
}
func _deletespaceMw() []app.HandlerFunc {
// your code...
return nil
}
func _space_userMw() []app.HandlerFunc {
// your code...
return nil
}
func _exitspaceMw() []app.HandlerFunc {
// your code...
return nil
}
func _queryspaceusersMw() []app.HandlerFunc {
// your code...
return nil
}
func _listspaceusersMw() []app.HandlerFunc {
// your code...
return nil
}
func _removespaceuserMw() []app.HandlerFunc {
// your code...
return nil
}
func _updatespaceuserroleMw() []app.HandlerFunc {
// your code...
return nil
}
@@ -19,6 +19,14 @@ 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)...)
}
}