signal
This commit is contained in:
parent
abc4dd2d30
commit
b2d079d737
@ -273,7 +273,7 @@ func signalOperation(c *gin.Context) {
|
|||||||
if err := c.ShouldBind(&req); err != nil {
|
if err := c.ShouldBind(&req); err != nil {
|
||||||
panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()})
|
panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()})
|
||||||
}
|
}
|
||||||
// simulation := checkDeviceDataAndReturn(req.SimulationId)
|
simulation := checkDeviceDataAndReturn(req.SimulationId)
|
||||||
slog.Info("传入状态参数", req)
|
slog.Info("传入状态参数", req)
|
||||||
memory.ChangeSignalState(simulation, req.MapId, req.DeviceId, req.Aspect)
|
memory.ChangeSignalState(simulation, req.MapId, req.DeviceId, req.Aspect)
|
||||||
c.JSON(http.StatusOK, "ok")
|
c.JSON(http.StatusOK, "ok")
|
||||||
|
Loading…
Reference in New Issue
Block a user