提交
This commit is contained in:
1 parent
93c28759d0
commit
b23a2eb350
129 files changed
+28511
-17769
No files matched your search
@@ -447,6 +447,18 @@ class HospitalUpdateBody(BaseModel):
|
||||
remark: Optional[str] = None
|
||||
|
||||
|
||||
@router.get("/collection-hospitals/search")
|
||||
async def search_collection_hospitals(
|
||||
keyword: str = Query(..., min_length=1),
|
||||
limit: int = Query(20, ge=1, le=50),
|
||||
user: dict = Depends(require_menu_code("biz:collectionRegion:list")),
|
||||
db: Session = Depends(get_db),
|
||||
):
|
||||
tenant_no = _get_tenant_no(db, user)
|
||||
items = region_svc.search_hospitals_by_keyword(db, keyword=keyword, tenant_no=tenant_no, limit=limit)
|
||||
return success_response({"list": items})
|
||||
|
||||
|
||||
@router.get("/collection-regions/{region_id}/hospitals")
|
||||
async def list_hospitals(
|
||||
region_id: str,
|
||||
|
||||
Reference in new issue
Block a user