32 lines
656 B
Go
32 lines
656 B
Go
package repository
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
//PSCADA 自动化系统图
|
|
|
|
// NetworkSwitch 网络交换机
|
|
type NetworkSwitch struct {
|
|
Identity
|
|
Code string
|
|
}
|
|
|
|
func NewNetworkSwitch(id string, code string) *NetworkSwitch {
|
|
return &NetworkSwitch{
|
|
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_NetworkSwitch},
|
|
Code: code,
|
|
}
|
|
}
|
|
|
|
// WireCabinet 线柜
|
|
type WireCabinet struct {
|
|
Identity
|
|
Code string
|
|
}
|
|
|
|
func NewWireCabinet(id string, code string) *WireCabinet {
|
|
return &WireCabinet{
|
|
Identity: &identity{id: id, deviceType: proto.DeviceType_DeviceType_WireCabinet},
|
|
Code: code,
|
|
}
|
|
}
|