列车pc仿真调整
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m37s
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m37s
This commit is contained in:
parent
92d21d559f
commit
5a7b371005
@ -34,7 +34,7 @@ func InitSimulationRouter(api *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddle
|
||||
authed.POST("/train/update", updateTrain)
|
||||
authed.POST("/train/control", controlTrain)
|
||||
authed.POST("/train/conn", trainConnThird)
|
||||
authed.POST("/train/unconn/:trainId/:id", trainUnConnThird)
|
||||
authed.DELETE("/train/unconn/:trainId/:id", trainUnConnThird)
|
||||
|
||||
authed.GET("/train/conn/type/:id", trainConnTypeList)
|
||||
|
||||
@ -328,7 +328,7 @@ func trainConnThird(c *gin.Context) {
|
||||
// @Param id path string true "仿真id"
|
||||
// @Success 200 {object} dto.AddTrainRspDto
|
||||
// @Failure 500 {object} dto.ErrorDto
|
||||
// @Router /api/v1/simulation/train/conn [post]
|
||||
// @Router /api/v1/simulation/train/conn [delete]
|
||||
func trainUnConnThird(c *gin.Context) {
|
||||
trainId := c.Param("trainId")
|
||||
simId := c.Param("id")
|
||||
|
2
third_party/train_pc_sim/example/main.go
vendored
2
third_party/train_pc_sim/example/main.go
vendored
@ -106,6 +106,8 @@ func main() {
|
||||
fmt.Println("接收驾驶端未激活")
|
||||
} else if msg.Type == train_pc_sim.SENDER_TRAIN_OUTR_INFO {
|
||||
fmt.Println("接受列车输出数字量", msg.Data[0], msg.Data[1])
|
||||
} else if msg.Type == train_pc_sim.RECIVE_TRAIN_CREATE_REMOVE {
|
||||
fmt.Println("创建或删除列车")
|
||||
}
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user