2023-10-23 18:01:48 +08:00
|
|
|
package memory
|
|
|
|
|
|
|
|
import (
|
2023-10-24 10:19:51 +08:00
|
|
|
"joylink.club/bj-rtsts-server/dto"
|
2023-10-23 18:01:48 +08:00
|
|
|
)
|
|
|
|
|
2023-10-24 10:19:51 +08:00
|
|
|
func ChangeAxleSectionState(simulation *VerifySimulation, req *dto.AxleSectionOperationReqDto) {
|
2023-10-31 16:00:28 +08:00
|
|
|
/*
|
|
|
|
sectionUid := QueryUidByMidAndComId(req.MapId, req.DeviceId, &graphicData.Section{})
|
|
|
|
slog.Debug("操作计轴区段", "axleSectionUid", sectionUid)
|
|
|
|
switch req.Operation {
|
|
|
|
case request_proto.Section_Drst:
|
|
|
|
fi.DriveAxleSectionDrst(simulation.World, sectionUid, req.Reset)
|
|
|
|
case request_proto.Section_Pdrst:
|
|
|
|
fi.DriveAxleSectionPdrst(simulation.World, sectionUid, req.Reset)
|
|
|
|
|
|
|
|
case request_proto.Section_TrainIn:
|
|
|
|
fi.DriveAxleSectionTrainIn(simulation.World, sectionUid)
|
|
|
|
case request_proto.Section_TrainOut:
|
|
|
|
fi.DriveAxleSectionTrainOut(simulation.World, sectionUid)
|
|
|
|
|
2023-10-31 11:30:18 +08:00
|
|
|
|
2023-10-31 16:00:28 +08:00
|
|
|
}
|
|
|
|
*/
|
2023-10-24 10:19:51 +08:00
|
|
|
}
|