mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
Remove data scope in the role model (#478)
This commit is contained in:
@@ -69,10 +69,9 @@ async def get_role(pk: Annotated[int, Path(...)]) -> ResponseModel:
|
||||
async def get_pagination_roles(
|
||||
db: CurrentSession,
|
||||
name: Annotated[str | None, Query()] = None,
|
||||
data_scope: Annotated[int | None, Query()] = None,
|
||||
status: Annotated[int | None, Query()] = None,
|
||||
) -> ResponseModel:
|
||||
role_select = await role_service.get_select(name=name, data_scope=data_scope, status=status)
|
||||
role_select = await role_service.get_select(name=name, status=status)
|
||||
page_data = await paging_data(db, role_select, GetRoleListDetails)
|
||||
return response_base.success(data=page_data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user