计轴区段操作

This commit is contained in:
xzb 2023-10-24 10:22:52 +08:00
parent 4aecaf4512
commit 40a8616d95

View File

@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT. // Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs package docs
import "github.com/swaggo/swag" import "github.com/swaggo/swag"
@ -2779,6 +2778,58 @@ const docTemplate = `{
} }
} }
}, },
"/api/v1/simulation/axleSection/operation": {
"post": {
"security": [
{
"JwtAuth": []
}
],
"description": "ATS测试-计轴区段操作",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"ATS测试仿真Api"
],
"summary": "ATS测试-计轴区段操作",
"parameters": [
{
"type": "string",
"description": "JWT Token",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "ATS测试仿真-操作计轴区段",
"name": "AxleSectionOperationReqDto",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.AxleSectionOperationReqDto"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/dto.ErrorDto"
}
}
}
}
},
"/api/v1/simulation/check/data": { "/api/v1/simulation/check/data": {
"post": { "post": {
"security": [ "security": [
@ -4878,6 +4929,32 @@ const docTemplate = `{
} }
} }
}, },
"dto.AxleSectionOperationReqDto": {
"type": "object",
"required": [
"id",
"mapId",
"simulationId"
],
"properties": {
"id": {
"type": "string"
},
"mapId": {
"type": "integer"
},
"operation": {
"$ref": "#/definitions/request_proto.Section_AxleOperation"
},
"reset": {
"description": "当操作为直接复位或预复位时有效true-复位false-取消或结束复位",
"type": "boolean"
},
"simulationId": {
"type": "string"
}
}
},
"dto.CheckMapDataReqDto": { "dto.CheckMapDataReqDto": {
"type": "object", "type": "object",
"required": [ "required": [
@ -5597,6 +5674,27 @@ const docTemplate = `{
} }
} }
}, },
"request_proto.Section_AxleOperation": {
"type": "integer",
"enum": [
0,
1,
2,
3
],
"x-enum-comments": {
"Section_Drst": "设置计轴直接复位",
"Section_Pdrst": "设置计轴预复位",
"Section_TrainIn": "设置计轴区段内有车轴",
"Section_TrainOut": "设置计轴区段内没有车轴"
},
"x-enum-varnames": [
"Section_Drst",
"Section_Pdrst",
"Section_TrainIn",
"Section_TrainOut"
]
},
"request_proto.Signal_Operation": { "request_proto.Signal_Operation": {
"type": "integer", "type": "integer",
"enum": [ "enum": [