feat:add fetch project
This commit is contained in:
@@ -154,3 +154,13 @@ class ProjectRepository(BaseRepository[ProjectModel]):
|
||||
extra_filter=[{'sts':2}],
|
||||
inputs=_input.te) \
|
||||
.to_dict()
|
||||
|
||||
async def fetch(self, _input: TableEngineRequestType) -> TableEngineExport[T]:
|
||||
return await NewTableEngine.mongo(
|
||||
query_class=use_collection(self.COLLECTION),
|
||||
soft_deleted=True,
|
||||
model=self.MODEL,
|
||||
search_cols=['name'],
|
||||
extra_filter=[{'sts': 1}],
|
||||
inputs=_input.te) \
|
||||
.to_dict()
|
||||
|
||||
Reference in New Issue
Block a user