feat(admin): add edit flows for all catalogs and member authentik sync

This commit is contained in:
Chris
2026-03-30 03:25:53 +08:00
parent 2dd70dceff
commit f85d3de5c5
20 changed files with 945 additions and 85 deletions

View File

@@ -38,3 +38,21 @@ class SitesRepository:
self.db.commit()
self.db.refresh(item)
return item
def update(
self,
item: Site,
*,
company_id: str | None = None,
name: str | None = None,
status: str | None = None,
) -> Site:
if company_id is not None:
item.company_id = company_id
if name is not None:
item.name = name
if status is not None:
item.status = status
self.db.commit()
self.db.refresh(item)
return item