【增加设备类型】

This commit is contained in:
weizhihong 2023-10-13 14:03:48 +08:00
parent 4f05a50503
commit 008dcbc665
2 changed files with 34 additions and 2 deletions

@ -1 +1 @@
Subproject commit 1c6eed67ea95b41e7b3cae7375f0f740202fd22b
Subproject commit 37e06d2aaf64828da677131dfb790bd0de7cef56

View File

@ -18,6 +18,9 @@ message Repository {
repeated Relay relays = 11;
repeated PhaseFailureProtector phaseFailureProtectors = 12;
repeated Button buttons = 13;
repeated Light lights = 14;
repeated Alarm alarms = 15;
repeated Station stations = 16;
}
//
@ -106,6 +109,7 @@ enum DeviceType {
DeviceType_Button = 12;
DeviceType_Light = 13;
DeviceType_Alarm = 14;
DeviceType_Station = 15;
}
enum Port {
@ -186,3 +190,31 @@ message Button {
string code = 2;
ButtonType buttonType = 3;
}
//
message Light {
enum LightAspect {
L = 0; //绿
H = 1; //
U = 2; //
HU= 3; //
B=4; //
A=5; //
}
string id = 1;
string code = 2;
LightAspect aspect = 3;
}
//
message Alarm {
string id = 1;
string code = 2;
}
//
message Station {
string id = 1;
string code = 2;
repeated ElectronicComponentGroup electronicComponentGroups = 3; //
}