Added API:/api/mcp/service/resource_group/list/unbind

This commit is contained in:
Liujian committed 2025-12-16 14:45:45 +08:00
1 parent c5854a1d6f
commit b00fca810d
4 files changed
+40

No files matched your search

@@ -335,6 +335,18 @@ class ResourceGroupService:
}
for s in services
]
def get_unbind_groups(self, sid: str) -> List[dict]:
"""Get all groups not bind to service"""
gids = self.map_repo.list_group_ids(sid)
groups = self.group_repo.get_all_not_include(ids=gids)
return [
{
"id": g.id,
"name": g.name,
}
for g in groups
]
def unbind_service(self, gid: str, sids: List[str]) -> int:
try: