iscs pscada 一次图 repository

This commit is contained in:
xzb 2023-12-20 16:08:50 +08:00
parent b5d3f89b4e
commit 2b72e6475f

View File

@ -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