phase-3: breakdown and complaint register with calculations and permissions

This commit is contained in:
Atharv1705
2026-11-12 12:54:21 +05:30
parent ee437e3adf
commit 905f6735a7
29 changed files with 3505 additions and 26 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ def list_users(
return {"items": [_user_list_out(u) for u in items], "total": total}
@router.get("/lookup", response_model=list[UserLookupOut])
@router.get("/lookup", response_model=PaginatedOut[UserLookupOut])
def lookup_users(
db: Session = Depends(get_db),
_: User = Depends(get_current_user),
@@ -68,7 +68,7 @@ def lookup_users(
.order_by(User.name.asc())
.all()
)
return users
return {"items": users, "total": len(users)}
@router.post("", response_model=UserListOut, status_code=status.HTTP_201_CREATED)