feat(config):add domain

This commit is contained in:
shahzeydyfah
2025-11-02 19:13:34 +03:30
parent af51729bae
commit 7d0d62f402
5 changed files with 432 additions and 41 deletions
+8
View File
@@ -208,6 +208,14 @@ class ProjectRepository(BaseRepository[ProjectModel]):
return True
async def getList(self, state: str='null'):
if not state == 'null':
projects = await use_collection(TaskEnv.CLN_PROJECT).find({"sts": 1,"design.state":state }).to_list(None)
else:
projects = await use_collection(TaskEnv.CLN_PROJECT).find({"sts": 1}).to_list(None)
return projects
async def fetch_delete(self, _input: TableEngineRequestType) -> TableEngineExport[T]:
return await NewTableEngine.mongo(
query_class=use_collection(self.COLLECTION),