From 40a8616d9587156717156ee82c936882d7afcb2c Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Tue, 24 Oct 2023 10:22:52 +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/docs.go | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 2 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index e83bb02..751dfa1 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,5 +1,4 @@ -// Code generated by swaggo/swag. DO NOT EDIT. - +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs 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": { "post": { "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": { "type": "object", "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": { "type": "integer", "enum": [