mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Update the default value for some functions (#573)
* Update the default value for some functions * Fix lint
This commit is contained in:
@@ -22,7 +22,7 @@ class CRUDDictData(CRUDPlus[DictData]):
|
||||
"""
|
||||
return await self.select_model(db, pk)
|
||||
|
||||
async def get_list(self, label: str | None = None, value: str | None = None, status: int | None = None) -> Select:
|
||||
async def get_list(self, label: str | None, value: str | None, status: int | None) -> Select:
|
||||
"""
|
||||
获取字典数据列表
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class CRUDDictType(CRUDPlus[DictType]):
|
||||
"""
|
||||
return await self.select_model(db, pk)
|
||||
|
||||
async def get_list(self, *, name: str | None = None, code: str | None = None, status: int | None = None) -> Select:
|
||||
async def get_list(self, *, name: str | None, code: str | None, status: int | None) -> Select:
|
||||
"""
|
||||
获取字典类型列表
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class DictDataService:
|
||||
return dict_data
|
||||
|
||||
@staticmethod
|
||||
async def get_select(*, label: str | None = None, value: str | None = None, status: int | None = None) -> Select:
|
||||
async def get_select(*, label: str | None, value: str | None, status: int | None) -> Select:
|
||||
"""
|
||||
获取字典数据列表查询条件
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class DictTypeService:
|
||||
"""字典类型服务类"""
|
||||
|
||||
@staticmethod
|
||||
async def get_select(*, name: str | None = None, code: str | None = None, status: int | None = None) -> Select:
|
||||
async def get_select(*, name: str | None, code: str | None, status: int | None) -> Select:
|
||||
"""
|
||||
获取字典类型列表查询条件
|
||||
|
||||
|
||||
Reference in New Issue
Block a user