package repository import "joylink.club/rtsssimulation/repository/model/proto" type PortedDevice interface { Identity // PortNum 端口数量 PortNum() int //// 下一个设备端口 //Next(port proto.Port) DevicePort //// 其他设备端口 //Others(port proto.Port) []DevicePort } type DevicePort interface { Port() proto.Port Device() PortedDevice }