Refactor the service layer db session call method (#850)

* Refactor the service layer db session call method

* Fix lint

* Update paging interfaces

* Fix some errors
This commit is contained in:
Wu Clan
2025-10-16 12:49:56 +08:00
committed by GitHub
parent 9147d35c8c
commit 15a9527866
62 changed files with 1731 additions and 1476 deletions
@@ -19,8 +19,8 @@ class CRUD{{ class_name }}(CRUDPlus[{{ schema_name }}]):
"""
return await self.select_model(db, pk)
async def get_list(self) -> Select:
"""获取{{ doc_comment }}列表"""
async def get_select(self) -> Select:
"""获取{{ doc_comment }}列表查询表达式"""
return await self.select_order('id', 'desc')
async def get_all(self, db: AsyncSession) -> Sequence[{{ class_name }}]: