删除旧代码
This commit is contained in:
parent
d4f8d3416f
commit
87d81c58b3
@ -8,16 +8,6 @@ import (
|
|||||||
"joylink.club/rtsssimulation/fi"
|
"joylink.club/rtsssimulation/fi"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 继电器操作方法
|
|
||||||
func ChangeRelayState(sim *VerifySimulation, mapId int32, id uint32, td bool) error {
|
|
||||||
uid := QueryUidByMidAndComId(mapId, id, &graphicData.Relay{})
|
|
||||||
if td {
|
|
||||||
return fi.DriveRelayUp(sim.World, uid)
|
|
||||||
} else {
|
|
||||||
return fi.DriveRelayDown(sim.World, uid)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理继电器操作
|
// 处理继电器操作
|
||||||
func HandleRelayOperation(simulation *VerifySimulation, req *request_proto.RelayOperationReq) error {
|
func HandleRelayOperation(simulation *VerifySimulation, req *request_proto.RelayOperationReq) error {
|
||||||
uid := QueryUidByMidAndComId(req.MapId, req.DeviceId, &graphicData.Relay{})
|
uid := QueryUidByMidAndComId(req.MapId, req.DeviceId, &graphicData.Relay{})
|
||||||
|
Loading…
Reference in New Issue
Block a user