From 2b72e6475fb580cab3b9459f77b40614c9e467a9 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Wed, 20 Dec 2023 16:08:50 +0800 Subject: [PATCH] =?UTF-8?q?iscs=20=20pscada=20=E4=B8=80=E6=AC=A1=E5=9B=BE?= =?UTF-8?q?=20repository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repository/iscs_pscada_yc.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repository/iscs_pscada_yc.go b/repository/iscs_pscada_yc.go index 64ac3f1..11f8a8e 100644 --- a/repository/iscs_pscada_yc.go +++ b/repository/iscs_pscada_yc.go @@ -7,14 +7,14 @@ import "joylink.club/rtsssimulation/repository/model/proto" // Pipe 管线模型 type Pipe struct { Identity - Code string - Type proto.Pipe_Type - PortA DevicePort //管线的A端连接的设备 - PortB DevicePort //管线的B端连接的设备 + Code string + PipeType proto.Pipe_Type + PortA DevicePort //管线的A端连接的设备 + PortB DevicePort //管线的B端连接的设备 } func NewPipe(id string, code string, pipeType proto.Pipe_Type) *Pipe { - return &Pipe{Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_Pipe}, Code: code, Type: pipeType} + return &Pipe{Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_Pipe}, Code: code, PipeType: pipeType} } func (p *Pipe) PortNum() int { return 2