package model //设备模型基础信息 type DeviceModel struct { Id string } //端口定义,如轨道、区段、道岔的端口 type PortEnum = int8 //具体端口枚举 const ( A PortEnum = iota B C )