From 4aecaf4512a1b6fa6465c03abf4c57c9a610e2d8 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Tue, 24 Oct 2023 10:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E8=BD=B4=E5=8C=BA=E6=AE=B5=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/swagger.json | 99 +++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.yaml | 68 ++++++++++++++++++++++++++++++++ 2 files changed, 167 insertions(+) diff --git a/docs/swagger.json b/docs/swagger.json index 8c270b3..efd4f17 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2772,6 +2772,58 @@ } } }, + "/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": { "post": { "security": [ @@ -4871,6 +4923,32 @@ } } }, + "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": { "type": "object", "required": [ @@ -5590,6 +5668,27 @@ } } }, + "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": { "type": "integer", "enum": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 96a3ce2..0663145 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -60,6 +60,24 @@ definitions: name: type: string type: object + dto.AxleSectionOperationReqDto: + properties: + id: + type: string + mapId: + type: integer + operation: + $ref: '#/definitions/request_proto.Section_AxleOperation' + reset: + description: 当操作为直接复位或预复位时有效,true-复位,false-取消或结束复位 + type: boolean + simulationId: + type: string + required: + - id + - mapId + - simulationId + type: object dto.CheckMapDataReqDto: properties: data: @@ -559,6 +577,23 @@ definitions: description: 名称 type: string type: object + request_proto.Section_AxleOperation: + enum: + - 0 + - 1 + - 2 + - 3 + type: integer + 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: enum: - 0 @@ -2433,6 +2468,39 @@ paths: summary: 获取仿真地图的公里标范围 tags: - ATS测试仿真Api + /api/v1/simulation/axleSection/operation: + post: + consumes: + - application/json + description: ATS测试-计轴区段操作 + parameters: + - description: JWT Token + in: header + name: Authorization + required: true + type: string + - description: ATS测试仿真-操作计轴区段 + in: body + name: AxleSectionOperationReqDto + required: true + schema: + $ref: '#/definitions/dto.AxleSectionOperationReqDto' + produces: + - application/json + responses: + "200": + description: OK + schema: + type: string + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/dto.ErrorDto' + security: + - JwtAuth: [] + summary: ATS测试-计轴区段操作 + tags: + - ATS测试仿真Api /api/v1/simulation/check/data: post: consumes: