This commit is contained in:
jxxghp
2023-06-11 09:01:25 +08:00
parent cf301f11ad
commit 4061fd21c8
8 changed files with 49 additions and 16 deletions

View File

@ -31,6 +31,12 @@ class Sites:
"""
return Site.list(self._db)
def list_active(self):
"""
按状态获取站点列表
"""
return Site.get_actives(self._db)
def get_by_domain(self, domain: str) -> Site:
"""
按域名获取站点