删除旧代码

This commit is contained in:
walker 2024-01-17 09:27:00 +08:00
parent d4f8d3416f
commit 87d81c58b3

View File

@ -8,16 +8,6 @@ import (
"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 {
uid := QueryUidByMidAndComId(req.MapId, req.DeviceId, &graphicData.Relay{})