|
|
|
|
@ -38,7 +38,7 @@ class EndpointAddRequest(BaseSchema):
|
|
|
|
|
|
|
|
|
|
endpoint_name = fields.String(
|
|
|
|
|
required=True,
|
|
|
|
|
metadata={"example": "采集端名称", "descriptrion": "采集端名称"},
|
|
|
|
|
metadata={"example": "采集端名称", "description": "采集端名称"},
|
|
|
|
|
)
|
|
|
|
|
endpoint_number = fields.String(
|
|
|
|
|
required=True,
|
|
|
|
|
@ -57,6 +57,10 @@ class EndpointAddRequest(BaseSchema):
|
|
|
|
|
required=True,
|
|
|
|
|
metadata={"example": "采集端端口", "description": "采集端端口"},
|
|
|
|
|
)
|
|
|
|
|
opc_url_temp = fields.String(
|
|
|
|
|
required=True,
|
|
|
|
|
metadata={"example": "{_ip_}:{_port_}", "description": "OPC URL模板"},
|
|
|
|
|
)
|
|
|
|
|
brand_name = fields.String(
|
|
|
|
|
required=False,
|
|
|
|
|
metadata={"example": "品牌名称", "description": "品牌名称"},
|
|
|
|
|
@ -95,6 +99,10 @@ class EndpointUpdateRequest(BaseSchema):
|
|
|
|
|
required=True,
|
|
|
|
|
metadata={"example": "采集端端口", "description": "采集端端口"},
|
|
|
|
|
)
|
|
|
|
|
opc_url_temp = fields.String(
|
|
|
|
|
required=True,
|
|
|
|
|
metadata={"example": "{_ip_}:{_port_}", "description": "OPC URL模板"},
|
|
|
|
|
)
|
|
|
|
|
brand_name = fields.String(
|
|
|
|
|
required=False,
|
|
|
|
|
metadata={"example": "品牌名称", "description": "品牌名称"},
|
|
|
|
|
|