【仿真列表增加运行环境ID】
This commit is contained in:
parent
57d1fbad6e
commit
ad9d4f57aa
@ -142,6 +142,7 @@ type SimulationInfoRspDto struct {
|
||||
MapId int32 `json:"mapId" form:"mapId"`
|
||||
MapIds []int32 `form:"mapIds" json:"mapIds"`
|
||||
ProjectId int32 `form:"projectId" json:"projectId"`
|
||||
ProjectRunConfigId int32 `form:"runConfigId" json:"runConfigId" ` // 运行环境ID
|
||||
}
|
||||
type SimulationInfoRspDtoArr []SimulationInfoRspDto
|
||||
|
||||
|
@ -431,6 +431,14 @@ func (s *VerifySimulation) initRunConfig(runConfig *dto.ProjectRunConfigDto) err
|
||||
return nil
|
||||
}
|
||||
|
||||
// 获取仿真运行参数ID
|
||||
func (s *VerifySimulation) GetRunConfigId() int32 {
|
||||
if s.runConfig == nil {
|
||||
return 0
|
||||
}
|
||||
return s.runConfig.Id
|
||||
}
|
||||
|
||||
// 初始化运行资源
|
||||
func (s *VerifySimulation) initRepository() error {
|
||||
// 构建Repository
|
||||
|
@ -133,6 +133,7 @@ func ListAllSimulations() []*dto.SimulationInfoRspDto {
|
||||
MapId: s.MapIds[0],
|
||||
MapIds: s.MapIds,
|
||||
ProjectId: s.ProjectId,
|
||||
ProjectRunConfigId: s.GetRunConfigId(),
|
||||
})
|
||||
return true
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user