动力学列车数据配置

This commit is contained in:
tiger_zhou 2024-01-18 17:33:51 +08:00
parent f97df40b5a
commit 28f3a2adc5
5 changed files with 514 additions and 465 deletions

@ -1 +1 @@
Subproject commit f9f2cabf35774b9be45afd6474a4d40f32a7da36 Subproject commit d2d4e85e34a89d1b38ee8ed1aacc7a955a89b829

View File

@ -4061,7 +4061,7 @@ const docTemplate = `{
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/dto.SignalOperationReqDto" "$ref": "#/definitions/request_proto.SignalOperationReq"
} }
} }
], ],
@ -4113,7 +4113,7 @@ const docTemplate = `{
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/request_proto.TurnoutOperationReq" "$ref": "#/definitions/request_proto.PointsOperationReq"
} }
} }
], ],
@ -4616,16 +4616,6 @@ const docTemplate = `{
"name": "id", "name": "id",
"in": "query" "in": "query"
}, },
{
"type": "integer",
"name": "max_diameter",
"in": "query"
},
{
"type": "integer",
"name": "min_diameter",
"in": "query"
},
{ {
"type": "string", "type": "string",
"name": "name", "name": "name",
@ -4643,6 +4633,7 @@ const docTemplate = `{
}, },
{ {
"type": "string", "type": "string",
"description": "MinDiameter int32 ` + "`" + `json:\"min_diameter\" form:\"min_diameter\"` + "`" + `\nMaxDiameter int32 ` + "`" + `json:\"max_diameter\" form:\"max_diameter\"` + "`" + `",
"name": "train_sets", "name": "train_sets",
"in": "query" "in": "query"
} }
@ -5202,18 +5193,6 @@ const docTemplate = `{
"dto.ConfigTrainData": { "dto.ConfigTrainData": {
"type": "object", "type": "object",
"properties": { "properties": {
"baseResistanceParamA": {
"description": "Mass int32 ` + "`" + `json:\"mass\" form:\"mass\"` + "`" + ` // 列车的质量100=1ton",
"type": "number"
},
"baseResistanceParamB": {
"description": "基本阻力参数B",
"type": "number"
},
"baseResistanceParamC": {
"description": "基本阻力参数C",
"type": "number"
},
"curveResistanceParamR1": { "curveResistanceParamR1": {
"description": "曲线阻力参数R1", "description": "曲线阻力参数R1",
"type": "number" "type": "number"
@ -5230,6 +5209,22 @@ const docTemplate = `{
"description": "曲线阻力参数R4", "description": "曲线阻力参数R4",
"type": "number" "type": "number"
}, },
"davisParamA": {
"description": "Mass int32 ` + "`" + `json:\"mass\" form:\"mass\"` + "`" + ` // 列车的质量100=1ton",
"type": "number"
},
"davisParamB": {
"description": "基本阻力参数B",
"type": "number"
},
"davisParamC": {
"description": "基本阻力参数C",
"type": "number"
},
"idling": {
"description": "空转",
"type": "number"
},
"jump": { "jump": {
"description": "是否跳跃", "description": "是否跳跃",
"type": "boolean" "type": "boolean"
@ -5255,7 +5250,7 @@ const docTemplate = `{
"dto.ConfigTrainEnds": { "dto.ConfigTrainEnds": {
"type": "object", "type": "object",
"properties": { "properties": {
"radarCheckSpeed": { "radarCheckSpeedDiff": {
"description": "雷达测速数值", "description": "雷达测速数值",
"type": "number" "type": "number"
}, },
@ -5675,43 +5670,6 @@ const docTemplate = `{
} }
} }
}, },
"dto.SignalOperationReqDto": {
"type": "object",
"required": [
"aspect",
"id",
"mapId",
"operation",
"simulationId"
],
"properties": {
"aspect": {
"description": "当操作为Operation.Display时有效表示显示的信号",
"allOf": [
{
"$ref": "#/definitions/state_proto.Signal_Aspect"
}
]
},
"id": {
"type": "integer"
},
"mapId": {
"type": "integer"
},
"operation": {
"description": "信号机操作类型",
"allOf": [
{
"$ref": "#/definitions/request_proto.Signal_Operation"
}
]
},
"simulationId": {
"type": "string"
}
}
},
"dto.SimulationCreateReqDto": { "dto.SimulationCreateReqDto": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -5807,12 +5765,6 @@ const docTemplate = `{
"id": { "id": {
"type": "integer" "type": "integer"
}, },
"max_diameter": {
"type": "integer"
},
"min_diameter": {
"type": "integer"
},
"name": { "name": {
"type": "string" "type": "string"
}, },
@ -5826,6 +5778,7 @@ const docTemplate = `{
"type": "integer" "type": "integer"
}, },
"train_sets": { "train_sets": {
"description": "MinDiameter int32 ` + "`" + `json:\"min_diameter\" form:\"min_diameter\"` + "`" + `\nMaxDiameter int32 ` + "`" + `json:\"max_diameter\" form:\"max_diameter\"` + "`" + `",
"type": "string" "type": "string"
} }
} }
@ -6029,6 +5982,88 @@ const docTemplate = `{
} }
} }
}, },
"request_proto.PointsOperationReq": {
"type": "object",
"properties": {
"deviceId": {
"description": "设备id",
"type": "integer"
},
"mapId": {
"description": "图id",
"type": "integer"
},
"operation": {
"description": "道岔操作",
"allOf": [
{
"$ref": "#/definitions/request_proto.Points_Operation"
}
]
},
"param": {
"description": "道岔参数,当operation为SetParams时有效",
"allOf": [
{
"$ref": "#/definitions/request_proto.PointsParam"
}
]
},
"simulationId": {
"description": "仿真id",
"type": "string"
}
}
},
"request_proto.PointsParam": {
"type": "object",
"properties": {
"forcePosition": {
"description": "道岔强制",
"allOf": [
{
"$ref": "#/definitions/request_proto.Points_Force"
}
]
}
}
},
"request_proto.Points_Force": {
"type": "integer",
"enum": [
0,
1,
2,
3
],
"x-enum-comments": {
"Points_FP_DW": "定位",
"Points_FP_FW": "反位",
"Points_FP_NONE": "无强制",
"Points_FP_SB": "失表"
},
"x-enum-varnames": [
"Points_FP_NONE",
"Points_FP_DW",
"Points_FP_FW",
"Points_FP_SB"
]
},
"request_proto.Points_Operation": {
"type": "integer",
"enum": [
0,
1
],
"x-enum-comments": {
"Points_SetParams": "设置参数",
"Points_Undefined": "未定义"
},
"x-enum-varnames": [
"Points_Undefined",
"Points_SetParams"
]
},
"request_proto.PsdOperationReq": { "request_proto.PsdOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -6148,52 +6183,7 @@ const docTemplate = `{
"Section_CancelFaultOcc" "Section_CancelFaultOcc"
] ]
}, },
"request_proto.Signal_Operation": { "request_proto.SignalOperationReq": {
"type": "integer",
"enum": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"x-enum-comments": {
"Signal_Display": "显示操作,如设置绿色、设置红黄色",
"Signal_LightACancelDs": "取消蓝灯断丝故障",
"Signal_LightAFaultDs": "设置蓝灯断丝故障",
"Signal_LightBCancelDs": "取消白灯断丝故障",
"Signal_LightBFaultDs": "设置白灯断丝故障",
"Signal_LightHCancelDs": "取消红灯断丝故障",
"Signal_LightHFaultDs": "设置红灯断丝故障",
"Signal_LightLCancelDs": "取消绿灯断丝故障",
"Signal_LightLFaultDs": "设置绿灯断丝故障",
"Signal_LightUCancelDs": "取消黄灯断丝故障",
"Signal_LightUFaultDs": "设置黄灯断丝故障",
"Signal_Undefined": "未定义"
},
"x-enum-varnames": [
"Signal_Undefined",
"Signal_Display",
"Signal_LightHFaultDs",
"Signal_LightUFaultDs",
"Signal_LightLFaultDs",
"Signal_LightAFaultDs",
"Signal_LightBFaultDs",
"Signal_LightHCancelDs",
"Signal_LightUCancelDs",
"Signal_LightLCancelDs",
"Signal_LightACancelDs",
"Signal_LightBCancelDs"
]
},
"request_proto.TurnoutOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {
"deviceId": { "deviceId": {
@ -6205,10 +6195,18 @@ const docTemplate = `{
"type": "integer" "type": "integer"
}, },
"operation": { "operation": {
"description": "道岔操作", "description": "信号机操作",
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/request_proto.Turnout_Operation" "$ref": "#/definitions/request_proto.Signal_Operation"
}
]
},
"param": {
"description": "信号机参数,当operation为SetParams时有效",
"allOf": [
{
"$ref": "#/definitions/request_proto.SignalParam"
} }
] ]
}, },
@ -6218,52 +6216,51 @@ const docTemplate = `{
} }
} }
}, },
"request_proto.Turnout_Operation": { "request_proto.SignalParam": {
"type": "object",
"properties": {
"dsList": {
"description": "信号机断丝",
"type": "array",
"items": {
"$ref": "#/definitions/request_proto.Signal_DS"
}
},
"force": {
"description": "信号机强制",
"allOf": [
{
"$ref": "#/definitions/request_proto.Signal_Force"
}
]
}
}
},
"request_proto.Signal_DS": {
"type": "integer", "type": "integer",
"enum": [ "enum": [
0, 0,
1, 1,
2, 2,
3, 3,
4, 4
5,
6,
7,
8,
9,
10,
11
], ],
"x-enum-comments": { "x-enum-comments": {
"Turnout_CancelDC": "取消定操", "Signal_DS_A": "蓝灯断丝",
"Turnout_CancelFC": "取消反操", "Signal_DS_B": "白灯断丝",
"Turnout_CancelForce": "取消强制", "Signal_DS_H": "红灯断丝",
"Turnout_CancelJC": "取消挤岔故障", "Signal_DS_L": "绿灯断丝",
"Turnout_CancelSB": "取消失表故障", "Signal_DS_U": "黄灯断丝"
"Turnout_DC": "定操",
"Turnout_FC": "反操",
"Turnout_ForceDw": "强制定位",
"Turnout_ForceFw": "强制反位",
"Turnout_SetJC": "设置挤岔故障",
"Turnout_SetSB": "设置失表故障",
"Turnout_Undefined": "未定义"
}, },
"x-enum-varnames": [ "x-enum-varnames": [
"Turnout_Undefined", "Signal_DS_H",
"Turnout_DC", "Signal_DS_U",
"Turnout_CancelDC", "Signal_DS_L",
"Turnout_FC", "Signal_DS_A",
"Turnout_CancelFC", "Signal_DS_B"
"Turnout_SetSB",
"Turnout_CancelSB",
"Turnout_SetJC",
"Turnout_CancelJC",
"Turnout_ForceDw",
"Turnout_ForceFw",
"Turnout_CancelForce"
] ]
}, },
"state_proto.Signal_Aspect": { "request_proto.Signal_Force": {
"type": "integer", "type": "integer",
"enum": [ "enum": [
0, 0,
@ -6275,15 +6272,40 @@ const docTemplate = `{
6, 6,
7 7
], ],
"x-enum-comments": {
"Signal_SF_A": "蓝灯",
"Signal_SF_B": "白灯",
"Signal_SF_H": "红灯",
"Signal_SF_HU": "红黄灯",
"Signal_SF_L": "绿灯",
"Signal_SF_M": "灭灯",
"Signal_SF_NONE": "无强制",
"Signal_SF_U": "黄灯"
},
"x-enum-varnames": [ "x-enum-varnames": [
"Signal_Non", "Signal_SF_NONE",
"Signal_OFF", "Signal_SF_M",
"Signal_L", "Signal_SF_H",
"Signal_H", "Signal_SF_U",
"Signal_U", "Signal_SF_L",
"Signal_HU", "Signal_SF_HU",
"Signal_B", "Signal_SF_A",
"Signal_A" "Signal_SF_B"
]
},
"request_proto.Signal_Operation": {
"type": "integer",
"enum": [
0,
1
],
"x-enum-comments": {
"Signal_SetParams": "设置参数",
"Signal_Undefined": "未定义"
},
"x-enum-varnames": [
"Signal_Undefined",
"Signal_SetParams"
] ]
} }
}, },

View File

@ -4055,7 +4055,7 @@
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/dto.SignalOperationReqDto" "$ref": "#/definitions/request_proto.SignalOperationReq"
} }
} }
], ],
@ -4107,7 +4107,7 @@
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/request_proto.TurnoutOperationReq" "$ref": "#/definitions/request_proto.PointsOperationReq"
} }
} }
], ],
@ -4610,16 +4610,6 @@
"name": "id", "name": "id",
"in": "query" "in": "query"
}, },
{
"type": "integer",
"name": "max_diameter",
"in": "query"
},
{
"type": "integer",
"name": "min_diameter",
"in": "query"
},
{ {
"type": "string", "type": "string",
"name": "name", "name": "name",
@ -4637,6 +4627,7 @@
}, },
{ {
"type": "string", "type": "string",
"description": "MinDiameter int32 `json:\"min_diameter\" form:\"min_diameter\"`\nMaxDiameter int32 `json:\"max_diameter\" form:\"max_diameter\"`",
"name": "train_sets", "name": "train_sets",
"in": "query" "in": "query"
} }
@ -5196,18 +5187,6 @@
"dto.ConfigTrainData": { "dto.ConfigTrainData": {
"type": "object", "type": "object",
"properties": { "properties": {
"baseResistanceParamA": {
"description": "Mass int32 `json:\"mass\" form:\"mass\"` // 列车的质量100=1ton",
"type": "number"
},
"baseResistanceParamB": {
"description": "基本阻力参数B",
"type": "number"
},
"baseResistanceParamC": {
"description": "基本阻力参数C",
"type": "number"
},
"curveResistanceParamR1": { "curveResistanceParamR1": {
"description": "曲线阻力参数R1", "description": "曲线阻力参数R1",
"type": "number" "type": "number"
@ -5224,6 +5203,22 @@
"description": "曲线阻力参数R4", "description": "曲线阻力参数R4",
"type": "number" "type": "number"
}, },
"davisParamA": {
"description": "Mass int32 `json:\"mass\" form:\"mass\"` // 列车的质量100=1ton",
"type": "number"
},
"davisParamB": {
"description": "基本阻力参数B",
"type": "number"
},
"davisParamC": {
"description": "基本阻力参数C",
"type": "number"
},
"idling": {
"description": "空转",
"type": "number"
},
"jump": { "jump": {
"description": "是否跳跃", "description": "是否跳跃",
"type": "boolean" "type": "boolean"
@ -5249,7 +5244,7 @@
"dto.ConfigTrainEnds": { "dto.ConfigTrainEnds": {
"type": "object", "type": "object",
"properties": { "properties": {
"radarCheckSpeed": { "radarCheckSpeedDiff": {
"description": "雷达测速数值", "description": "雷达测速数值",
"type": "number" "type": "number"
}, },
@ -5669,43 +5664,6 @@
} }
} }
}, },
"dto.SignalOperationReqDto": {
"type": "object",
"required": [
"aspect",
"id",
"mapId",
"operation",
"simulationId"
],
"properties": {
"aspect": {
"description": "当操作为Operation.Display时有效表示显示的信号",
"allOf": [
{
"$ref": "#/definitions/state_proto.Signal_Aspect"
}
]
},
"id": {
"type": "integer"
},
"mapId": {
"type": "integer"
},
"operation": {
"description": "信号机操作类型",
"allOf": [
{
"$ref": "#/definitions/request_proto.Signal_Operation"
}
]
},
"simulationId": {
"type": "string"
}
}
},
"dto.SimulationCreateReqDto": { "dto.SimulationCreateReqDto": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -5801,12 +5759,6 @@
"id": { "id": {
"type": "integer" "type": "integer"
}, },
"max_diameter": {
"type": "integer"
},
"min_diameter": {
"type": "integer"
},
"name": { "name": {
"type": "string" "type": "string"
}, },
@ -5820,6 +5772,7 @@
"type": "integer" "type": "integer"
}, },
"train_sets": { "train_sets": {
"description": "MinDiameter int32 `json:\"min_diameter\" form:\"min_diameter\"`\nMaxDiameter int32 `json:\"max_diameter\" form:\"max_diameter\"`",
"type": "string" "type": "string"
} }
} }
@ -6023,6 +5976,88 @@
} }
} }
}, },
"request_proto.PointsOperationReq": {
"type": "object",
"properties": {
"deviceId": {
"description": "设备id",
"type": "integer"
},
"mapId": {
"description": "图id",
"type": "integer"
},
"operation": {
"description": "道岔操作",
"allOf": [
{
"$ref": "#/definitions/request_proto.Points_Operation"
}
]
},
"param": {
"description": "道岔参数,当operation为SetParams时有效",
"allOf": [
{
"$ref": "#/definitions/request_proto.PointsParam"
}
]
},
"simulationId": {
"description": "仿真id",
"type": "string"
}
}
},
"request_proto.PointsParam": {
"type": "object",
"properties": {
"forcePosition": {
"description": "道岔强制",
"allOf": [
{
"$ref": "#/definitions/request_proto.Points_Force"
}
]
}
}
},
"request_proto.Points_Force": {
"type": "integer",
"enum": [
0,
1,
2,
3
],
"x-enum-comments": {
"Points_FP_DW": "定位",
"Points_FP_FW": "反位",
"Points_FP_NONE": "无强制",
"Points_FP_SB": "失表"
},
"x-enum-varnames": [
"Points_FP_NONE",
"Points_FP_DW",
"Points_FP_FW",
"Points_FP_SB"
]
},
"request_proto.Points_Operation": {
"type": "integer",
"enum": [
0,
1
],
"x-enum-comments": {
"Points_SetParams": "设置参数",
"Points_Undefined": "未定义"
},
"x-enum-varnames": [
"Points_Undefined",
"Points_SetParams"
]
},
"request_proto.PsdOperationReq": { "request_proto.PsdOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -6142,52 +6177,7 @@
"Section_CancelFaultOcc" "Section_CancelFaultOcc"
] ]
}, },
"request_proto.Signal_Operation": { "request_proto.SignalOperationReq": {
"type": "integer",
"enum": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"x-enum-comments": {
"Signal_Display": "显示操作,如设置绿色、设置红黄色",
"Signal_LightACancelDs": "取消蓝灯断丝故障",
"Signal_LightAFaultDs": "设置蓝灯断丝故障",
"Signal_LightBCancelDs": "取消白灯断丝故障",
"Signal_LightBFaultDs": "设置白灯断丝故障",
"Signal_LightHCancelDs": "取消红灯断丝故障",
"Signal_LightHFaultDs": "设置红灯断丝故障",
"Signal_LightLCancelDs": "取消绿灯断丝故障",
"Signal_LightLFaultDs": "设置绿灯断丝故障",
"Signal_LightUCancelDs": "取消黄灯断丝故障",
"Signal_LightUFaultDs": "设置黄灯断丝故障",
"Signal_Undefined": "未定义"
},
"x-enum-varnames": [
"Signal_Undefined",
"Signal_Display",
"Signal_LightHFaultDs",
"Signal_LightUFaultDs",
"Signal_LightLFaultDs",
"Signal_LightAFaultDs",
"Signal_LightBFaultDs",
"Signal_LightHCancelDs",
"Signal_LightUCancelDs",
"Signal_LightLCancelDs",
"Signal_LightACancelDs",
"Signal_LightBCancelDs"
]
},
"request_proto.TurnoutOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {
"deviceId": { "deviceId": {
@ -6199,10 +6189,18 @@
"type": "integer" "type": "integer"
}, },
"operation": { "operation": {
"description": "道岔操作", "description": "信号机操作",
"allOf": [ "allOf": [
{ {
"$ref": "#/definitions/request_proto.Turnout_Operation" "$ref": "#/definitions/request_proto.Signal_Operation"
}
]
},
"param": {
"description": "信号机参数,当operation为SetParams时有效",
"allOf": [
{
"$ref": "#/definitions/request_proto.SignalParam"
} }
] ]
}, },
@ -6212,52 +6210,51 @@
} }
} }
}, },
"request_proto.Turnout_Operation": { "request_proto.SignalParam": {
"type": "object",
"properties": {
"dsList": {
"description": "信号机断丝",
"type": "array",
"items": {
"$ref": "#/definitions/request_proto.Signal_DS"
}
},
"force": {
"description": "信号机强制",
"allOf": [
{
"$ref": "#/definitions/request_proto.Signal_Force"
}
]
}
}
},
"request_proto.Signal_DS": {
"type": "integer", "type": "integer",
"enum": [ "enum": [
0, 0,
1, 1,
2, 2,
3, 3,
4, 4
5,
6,
7,
8,
9,
10,
11
], ],
"x-enum-comments": { "x-enum-comments": {
"Turnout_CancelDC": "取消定操", "Signal_DS_A": "蓝灯断丝",
"Turnout_CancelFC": "取消反操", "Signal_DS_B": "白灯断丝",
"Turnout_CancelForce": "取消强制", "Signal_DS_H": "红灯断丝",
"Turnout_CancelJC": "取消挤岔故障", "Signal_DS_L": "绿灯断丝",
"Turnout_CancelSB": "取消失表故障", "Signal_DS_U": "黄灯断丝"
"Turnout_DC": "定操",
"Turnout_FC": "反操",
"Turnout_ForceDw": "强制定位",
"Turnout_ForceFw": "强制反位",
"Turnout_SetJC": "设置挤岔故障",
"Turnout_SetSB": "设置失表故障",
"Turnout_Undefined": "未定义"
}, },
"x-enum-varnames": [ "x-enum-varnames": [
"Turnout_Undefined", "Signal_DS_H",
"Turnout_DC", "Signal_DS_U",
"Turnout_CancelDC", "Signal_DS_L",
"Turnout_FC", "Signal_DS_A",
"Turnout_CancelFC", "Signal_DS_B"
"Turnout_SetSB",
"Turnout_CancelSB",
"Turnout_SetJC",
"Turnout_CancelJC",
"Turnout_ForceDw",
"Turnout_ForceFw",
"Turnout_CancelForce"
] ]
}, },
"state_proto.Signal_Aspect": { "request_proto.Signal_Force": {
"type": "integer", "type": "integer",
"enum": [ "enum": [
0, 0,
@ -6269,15 +6266,40 @@
6, 6,
7 7
], ],
"x-enum-comments": {
"Signal_SF_A": "蓝灯",
"Signal_SF_B": "白灯",
"Signal_SF_H": "红灯",
"Signal_SF_HU": "红黄灯",
"Signal_SF_L": "绿灯",
"Signal_SF_M": "灭灯",
"Signal_SF_NONE": "无强制",
"Signal_SF_U": "黄灯"
},
"x-enum-varnames": [ "x-enum-varnames": [
"Signal_Non", "Signal_SF_NONE",
"Signal_OFF", "Signal_SF_M",
"Signal_L", "Signal_SF_H",
"Signal_H", "Signal_SF_U",
"Signal_U", "Signal_SF_L",
"Signal_HU", "Signal_SF_HU",
"Signal_B", "Signal_SF_A",
"Signal_A" "Signal_SF_B"
]
},
"request_proto.Signal_Operation": {
"type": "integer",
"enum": [
0,
1
],
"x-enum-comments": {
"Signal_SetParams": "设置参数",
"Signal_Undefined": "未定义"
},
"x-enum-varnames": [
"Signal_Undefined",
"Signal_SetParams"
] ]
} }
}, },

View File

@ -191,16 +191,6 @@ definitions:
type: object type: object
dto.ConfigTrainData: dto.ConfigTrainData:
properties: properties:
baseResistanceParamA:
description: Mass int32 `json:"mass" form:"mass"` //
列车的质量100=1ton
type: number
baseResistanceParamB:
description: 基本阻力参数B
type: number
baseResistanceParamC:
description: 基本阻力参数C
type: number
curveResistanceParamR1: curveResistanceParamR1:
description: 曲线阻力参数R1 description: 曲线阻力参数R1
type: number type: number
@ -213,6 +203,19 @@ definitions:
curveResistanceParamR4: curveResistanceParamR4:
description: 曲线阻力参数R4 description: 曲线阻力参数R4
type: number type: number
davisParamA:
description: Mass int32 `json:"mass" form:"mass"` //
列车的质量100=1ton
type: number
davisParamB:
description: 基本阻力参数B
type: number
davisParamC:
description: 基本阻力参数C
type: number
idling:
description: 空转
type: number
jump: jump:
description: 是否跳跃 description: 是否跳跃
type: boolean type: boolean
@ -231,7 +234,7 @@ definitions:
type: object type: object
dto.ConfigTrainEnds: dto.ConfigTrainEnds:
properties: properties:
radarCheckSpeed: radarCheckSpeedDiff:
description: 雷达测速数值 description: 雷达测速数值
type: number type: number
radarCheckTime: radarCheckTime:
@ -515,29 +518,6 @@ definitions:
description: 新添加的列车的索引 description: 新添加的列车的索引
type: string type: string
type: object type: object
dto.SignalOperationReqDto:
properties:
aspect:
allOf:
- $ref: '#/definitions/state_proto.Signal_Aspect'
description: 当操作为Operation.Display时有效表示显示的信号
id:
type: integer
mapId:
type: integer
operation:
allOf:
- $ref: '#/definitions/request_proto.Signal_Operation'
description: 信号机操作类型
simulationId:
type: string
required:
- aspect
- id
- mapId
- operation
- simulationId
type: object
dto.SimulationCreateReqDto: dto.SimulationCreateReqDto:
properties: properties:
mapId: mapId:
@ -603,10 +583,6 @@ definitions:
type: string type: string
id: id:
type: integer type: integer
max_diameter:
type: integer
min_diameter:
type: integer
name: name:
type: string type: string
total_length: total_length:
@ -614,6 +590,9 @@ definitions:
train_model: train_model:
type: integer type: integer
train_sets: train_sets:
description: |-
MinDiameter int32 `json:"min_diameter" form:"min_diameter"`
MaxDiameter int32 `json:"max_diameter" form:"max_diameter"`
type: string type: string
trainConfigData: trainConfigData:
$ref: '#/definitions/dto.ConfigTrainData' $ref: '#/definitions/dto.ConfigTrainData'
@ -761,6 +740,61 @@ definitions:
description: 数据类型 description: 数据类型
type: integer type: integer
type: object type: object
request_proto.Points_Force:
enum:
- 0
- 1
- 2
- 3
type: integer
x-enum-comments:
Points_FP_DW: 定位
Points_FP_FW: 反位
Points_FP_NONE: 无强制
Points_FP_SB: 失表
x-enum-varnames:
- Points_FP_NONE
- Points_FP_DW
- Points_FP_FW
- Points_FP_SB
request_proto.Points_Operation:
enum:
- 0
- 1
type: integer
x-enum-comments:
Points_SetParams: 设置参数
Points_Undefined: 未定义
x-enum-varnames:
- Points_Undefined
- Points_SetParams
request_proto.PointsOperationReq:
properties:
deviceId:
description: 设备id
type: integer
mapId:
description: 图id
type: integer
operation:
allOf:
- $ref: '#/definitions/request_proto.Points_Operation'
description: 道岔操作
param:
allOf:
- $ref: '#/definitions/request_proto.PointsParam'
description: 道岔参数,当operation为SetParams时有效
simulationId:
description: 仿真id
type: string
type: object
request_proto.PointsParam:
properties:
forcePosition:
allOf:
- $ref: '#/definitions/request_proto.Points_Force'
description: 道岔强制
type: object
request_proto.Psd_Operation: request_proto.Psd_Operation:
enum: enum:
- 0 - 0
@ -860,89 +894,67 @@ definitions:
- Section_CancelPdrst - Section_CancelPdrst
- Section_SetFaultOcc - Section_SetFaultOcc
- Section_CancelFaultOcc - Section_CancelFaultOcc
request_proto.Signal_DS:
enum:
- 0
- 1
- 2
- 3
- 4
type: integer
x-enum-comments:
Signal_DS_A: 蓝灯断丝
Signal_DS_B: 白灯断丝
Signal_DS_H: 红灯断丝
Signal_DS_L: 绿灯断丝
Signal_DS_U: 黄灯断丝
x-enum-varnames:
- Signal_DS_H
- Signal_DS_U
- Signal_DS_L
- Signal_DS_A
- Signal_DS_B
request_proto.Signal_Force:
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
type: integer
x-enum-comments:
Signal_SF_A: 蓝灯
Signal_SF_B: 白灯
Signal_SF_H: 红灯
Signal_SF_HU: 红黄灯
Signal_SF_L: 绿灯
Signal_SF_M: 灭灯
Signal_SF_NONE: 无强制
Signal_SF_U: 黄灯
x-enum-varnames:
- Signal_SF_NONE
- Signal_SF_M
- Signal_SF_H
- Signal_SF_U
- Signal_SF_L
- Signal_SF_HU
- Signal_SF_A
- Signal_SF_B
request_proto.Signal_Operation: request_proto.Signal_Operation:
enum: enum:
- 0 - 0
- 1 - 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
type: integer type: integer
x-enum-comments: x-enum-comments:
Signal_Display: 显示操作,如设置绿色、设置红黄色 Signal_SetParams: 设置参数
Signal_LightACancelDs: 取消蓝灯断丝故障
Signal_LightAFaultDs: 设置蓝灯断丝故障
Signal_LightBCancelDs: 取消白灯断丝故障
Signal_LightBFaultDs: 设置白灯断丝故障
Signal_LightHCancelDs: 取消红灯断丝故障
Signal_LightHFaultDs: 设置红灯断丝故障
Signal_LightLCancelDs: 取消绿灯断丝故障
Signal_LightLFaultDs: 设置绿灯断丝故障
Signal_LightUCancelDs: 取消黄灯断丝故障
Signal_LightUFaultDs: 设置黄灯断丝故障
Signal_Undefined: 未定义 Signal_Undefined: 未定义
x-enum-varnames: x-enum-varnames:
- Signal_Undefined - Signal_Undefined
- Signal_Display - Signal_SetParams
- Signal_LightHFaultDs request_proto.SignalOperationReq:
- Signal_LightUFaultDs
- Signal_LightLFaultDs
- Signal_LightAFaultDs
- Signal_LightBFaultDs
- Signal_LightHCancelDs
- Signal_LightUCancelDs
- Signal_LightLCancelDs
- Signal_LightACancelDs
- Signal_LightBCancelDs
request_proto.Turnout_Operation:
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
type: integer
x-enum-comments:
Turnout_CancelDC: 取消定操
Turnout_CancelFC: 取消反操
Turnout_CancelForce: 取消强制
Turnout_CancelJC: 取消挤岔故障
Turnout_CancelSB: 取消失表故障
Turnout_DC: 定操
Turnout_FC: 反操
Turnout_ForceDw: 强制定位
Turnout_ForceFw: 强制反位
Turnout_SetJC: 设置挤岔故障
Turnout_SetSB: 设置失表故障
Turnout_Undefined: 未定义
x-enum-varnames:
- Turnout_Undefined
- Turnout_DC
- Turnout_CancelDC
- Turnout_FC
- Turnout_CancelFC
- Turnout_SetSB
- Turnout_CancelSB
- Turnout_SetJC
- Turnout_CancelJC
- Turnout_ForceDw
- Turnout_ForceFw
- Turnout_CancelForce
request_proto.TurnoutOperationReq:
properties: properties:
deviceId: deviceId:
description: 设备id description: 设备id
@ -952,32 +964,28 @@ definitions:
type: integer type: integer
operation: operation:
allOf: allOf:
- $ref: '#/definitions/request_proto.Turnout_Operation' - $ref: '#/definitions/request_proto.Signal_Operation'
description: 道岔操作 description: 信号机操作
param:
allOf:
- $ref: '#/definitions/request_proto.SignalParam'
description: 信号机参数,当operation为SetParams时有效
simulationId: simulationId:
description: 仿真id description: 仿真id
type: string type: string
type: object type: object
state_proto.Signal_Aspect: request_proto.SignalParam:
enum: properties:
- 0 dsList:
- 1 description: 信号机断丝
- 2 items:
- 3 $ref: '#/definitions/request_proto.Signal_DS'
- 4 type: array
- 5 force:
- 6 allOf:
- 7 - $ref: '#/definitions/request_proto.Signal_Force'
type: integer description: 信号机强制
x-enum-varnames: type: object
- Signal_Non
- Signal_OFF
- Signal_L
- Signal_H
- Signal_U
- Signal_HU
- Signal_B
- Signal_A
host: localhost:9091 host: localhost:9091
info: info:
contact: {} contact: {}
@ -3553,7 +3561,7 @@ paths:
name: SignalOperationReqDto name: SignalOperationReqDto
required: true required: true
schema: schema:
$ref: '#/definitions/dto.SignalOperationReqDto' $ref: '#/definitions/request_proto.SignalOperationReq'
produces: produces:
- application/json - application/json
responses: responses:
@ -3586,7 +3594,7 @@ paths:
name: TurnoutOperationReq name: TurnoutOperationReq
required: true required: true
schema: schema:
$ref: '#/definitions/request_proto.TurnoutOperationReq' $ref: '#/definitions/request_proto.PointsOperationReq'
produces: produces:
- application/json - application/json
responses: responses:
@ -3855,12 +3863,6 @@ paths:
- in: query - in: query
name: id name: id
type: integer type: integer
- in: query
name: max_diameter
type: integer
- in: query
name: min_diameter
type: integer
- in: query - in: query
name: name name: name
type: string type: string
@ -3870,7 +3872,10 @@ paths:
- in: query - in: query
name: train_model name: train_model
type: integer type: integer
- in: query - description: |-
MinDiameter int32 `json:"min_diameter" form:"min_diameter"`
MaxDiameter int32 `json:"max_diameter" form:"max_diameter"`
in: query
name: train_sets name: train_sets
type: string type: string
produces: produces:

View File

@ -92,11 +92,11 @@ type ConfigTrainReqDto struct {
WheelDiameter int32 `json:"wheelDiameter"` // 轮径mm WheelDiameter int32 `json:"wheelDiameter"` // 轮径mm
} }
type ConfigTrainEnds struct { type ConfigTrainEnds struct {
SpeedSensorEnableA bool `json:"speedSensorEnableA"` // 2端速度传感器是否有效 SpeedSensorEnableA bool `json:"speedSensorEnableA"` // 2端速度传感器是否有效
SpeedSensorEnableB bool `json:"speedSensorEnableB"` // 2端速度传感器是否有效 SpeedSensorEnableB bool `json:"speedSensorEnableB"` // 2端速度传感器是否有效
RadarEnable bool `json:"radarEnable"` // 雷达是否有效 RadarEnable bool `json:"radarEnable"` // 雷达是否有效
RadarCheckSpeedDiff float32 `json:"radarCheckSpeed"` // 雷达测速数值 RadarCheckSpeedDiff float32 `json:"radarCheckSpeedDiff"` // 雷达测速数值
RadarCheckTime int32 `json:"radarCheckTime"` // 雷达检测时间(秒) RadarCheckTime int32 `json:"radarCheckTime"` // 雷达检测时间(秒)
} }
type ConfigTrainData struct { type ConfigTrainData struct {
//Mass int32 `json:"mass" form:"mass"` // 列车的质量100=1ton //Mass int32 `json:"mass" form:"mass"` // 列车的质量100=1ton