Optimize naming and preview in code generation (#764)

This commit is contained in:
Wu Clan
2025-08-12 16:42:25 +08:00
committed by GitHub
parent e09062eb39
commit 8e8af2032a
19 changed files with 169 additions and 128 deletions
@@ -23,7 +23,7 @@ class CRUD{{ class_name }}(CRUDPlus[{{ schema_name }}]):
async def get_list(self) -> Select:
"""获取{{ doc_comment }}列表"""
return await self.select_order('created_time', 'desc')
return await self.select_order('id', 'desc')
async def get_all(self, db: AsyncSession) -> Sequence[{{ class_name }}]:
"""