fix(burst): recognize native pressure units and separate isolation impact
This commit is contained in:
@@ -862,9 +862,18 @@ class TaskHighlightFeatures(StrictModel):
|
||||
|
||||
class TaskLocateFeatures(StrictModel):
|
||||
action: Literal["locate_features"]
|
||||
event_kind: Literal["burst", "pollution"] | None = Field(default=None,
|
||||
description="定位事件语义:爆管候选传 burst,污染源传 pollution;普通资产定位省略")
|
||||
layer: TaskMapLayer
|
||||
feature_ids: Annotated[list[TaskFeatureId], Field(min_length=1, max_length=100)]
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_optional_kind(self, handler):
|
||||
value = handler(self)
|
||||
if self.event_kind is None:
|
||||
value.pop("event_kind", None)
|
||||
return value
|
||||
|
||||
|
||||
class TaskZoomToMap(StrictModel):
|
||||
action: Literal["zoom_to_map"]
|
||||
|
||||
Reference in New Issue
Block a user