【仿真添加列车、修改道岔状态增加地图属性】
This commit is contained in:
parent
9e37ff7ced
commit
9673022ec7
|
@ -40,6 +40,8 @@ type AddTrainReqDto struct {
|
|||
HeadOffset int64 `json:"headOffset" form:"headOffset"`
|
||||
//列车长度
|
||||
TrainLength int64 `json:"trainLength" from:"trainLength"`
|
||||
// 场景ID
|
||||
MapId int32 `json:"mapId" from:"mapId"`
|
||||
}
|
||||
|
||||
// 为仿真添加测试车请求
|
||||
|
@ -48,6 +50,8 @@ type AddTrainRspDto struct {
|
|||
SimulationId string `json:"simulationId" form:"simulationId"`
|
||||
//新添加的列车的索引
|
||||
TrainId string `json:"trainId" form:"trainId"`
|
||||
// 场景ID
|
||||
MapId int32 `json:"mapId" from:"mapId"`
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -59,6 +63,7 @@ type RemoveTrainDto AddTrainRspDto
|
|||
|
||||
type SwitchOperationReqDto struct {
|
||||
SimulationId string `form:"simulationId" json:"simulationId" binding:"required"`
|
||||
MapId int32 `json:"mapId" from:"mapId" binding:"required"`
|
||||
SwitchIndex string `form:"switchIndex" json:"switchIndex" binding:"required"`
|
||||
TurnNormal bool `form:"turnNormal" json:"turnNormal"`
|
||||
TurnReverse bool `form:"turnReverse" json:"turnReverse"`
|
||||
|
|
Loading…
Reference in New Issue