2023-07-28 14:36:16 +08:00
|
|
|
|
package dto
|
|
|
|
|
|
2023-07-28 15:49:44 +08:00
|
|
|
|
// 创建仿真请求
|
2023-07-28 14:36:16 +08:00
|
|
|
|
type SimulationCreateReqDto struct {
|
|
|
|
|
//地图id
|
|
|
|
|
MapId int32 `json:"mapId" form:"mapId"`
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:49:44 +08:00
|
|
|
|
// 创建仿真响应
|
2023-07-28 14:36:16 +08:00
|
|
|
|
type SimulationCreateRspDto struct {
|
|
|
|
|
//地图id
|
|
|
|
|
MapId int32 `json:"mapId" form:"mapId"`
|
|
|
|
|
//仿真id
|
|
|
|
|
SimulationId string `json:"simulationId" form:"simulationId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
// 为仿真添加测试车请求
|
|
|
|
|
type AddTrainReqDto struct {
|
|
|
|
|
//仿真id
|
|
|
|
|
SimulationId string `json:"simulationId" form:"simulationId"`
|
|
|
|
|
//列车方向,true-上行,false-下行
|
|
|
|
|
Up bool `json:"up" form:"up"`
|
|
|
|
|
//车头所在link的索引
|
|
|
|
|
HeadLinkId string `json:"headLinkId" form:"headLinkId"`
|
|
|
|
|
//车头所在link内的偏移量,单位为mm
|
|
|
|
|
HeadLinkOffset int64 `json:"headLinkOffset" form:"headLinkOffset"`
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:49:44 +08:00
|
|
|
|
// 为仿真添加测试车请求
|
2023-07-28 14:36:16 +08:00
|
|
|
|
type AddTrainRspDto struct {
|
|
|
|
|
//仿真id
|
|
|
|
|
SimulationId string `json:"simulationId" form:"simulationId"`
|
|
|
|
|
//新添加的列车的索引
|
|
|
|
|
TrainId string `json:"trainId" form:"trainId"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
2023-07-28 15:49:44 +08:00
|
|
|
|
|
|
|
|
|
// 仿真移除列车请求
|
2023-07-28 16:14:31 +08:00
|
|
|
|
type RemoveTrainDto AddTrainRspDto
|
2023-07-28 15:49:44 +08:00
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
type SwitchOperationReqDto struct {
|
|
|
|
|
SimulationId string `form:"simulationId" json:"simulationId" binding:"required"`
|
|
|
|
|
SwitchIndex string `form:"switchIndex" json:"switchIndex" binding:"required"`
|
2023-07-31 17:27:05 +08:00
|
|
|
|
TurnNormal bool `form:"turnNormal" json:"turnNormal"`
|
|
|
|
|
TurnReverse bool `form:"turnReverse" json:"turnReverse"`
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
// 地铁数据检测请求
|
|
|
|
|
type CheckMapDataReqDto struct {
|
|
|
|
|
Data []byte `form:"data" json:"data" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 地图检验数据响应
|
|
|
|
|
type CheckMapDataRspDto struct {
|
|
|
|
|
Success bool `form:"success" json:"success"`
|
|
|
|
|
Errors []string `form:"errors" json:"errors"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 仿真实例的基本信息响应
|
|
|
|
|
type SimulationInfoRepDto struct {
|
|
|
|
|
SimulationId string `form:"simulationId" json:"simulationId"`
|
|
|
|
|
MapId string `form:"mapId" json:"mapId"`
|
|
|
|
|
}
|
|
|
|
|
type SimulationInfoRepDtoArr []SimulationInfoRepDto
|