mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Cache biz-state discover CLI results and improve bind table UX.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b9be545a75
commit
908771baea
8 changed files with 316 additions and 63 deletions
|
|
@ -85,6 +85,7 @@ class DiscoverIn(BaseModel):
|
|||
discover_profile_id: str = ""
|
||||
collect_profile_id: str = ""
|
||||
placeholder: str = ""
|
||||
force_refresh: bool = False
|
||||
|
||||
|
||||
class BindingsIn(BaseModel):
|
||||
|
|
@ -139,6 +140,7 @@ def api_discover(body: DiscoverIn, db: Session = Depends(get_db)) -> dict[str, A
|
|||
discover_profile_id=body.discover_profile_id,
|
||||
collect_profile_id=body.collect_profile_id,
|
||||
placeholder=body.placeholder,
|
||||
force_refresh=bool(body.force_refresh),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue