接口调整

This commit is contained in:
tiger_zhou 2023-07-28 16:14:31 +08:00
parent 76bf8570c8
commit f1e05071c7
5 changed files with 19 additions and 41 deletions

View File

@ -147,13 +147,13 @@ func checkSimMapData(c *gin.Context) {
}
}
// 获取ATS测试系统所有仿真实例的基本信息
// ATS测试仿真-移除列车
//
// @Summary 获取ATS测试系统所有仿真实例的基本信息
// @Summary ATS测试仿真-移除列车
//
// @Security JwtAuth
//
// @Description ATS测试仿真-添加列车
// @Description ATS测试仿真-移除列车
// @Tags ATS测试仿真Api
// @Accept json
// @Produce json

View File

@ -1048,7 +1048,7 @@ const docTemplate = `{
"JwtAuth": []
}
],
"description": "ATS测试仿真-添加列车",
"description": "ATS测试仿真-移除列车",
"consumes": [
"application/json"
],
@ -1058,7 +1058,7 @@ const docTemplate = `{
"tags": [
"ATS测试仿真Api"
],
"summary": "获取ATS测试系统所有仿真实例的基本信息",
"summary": "ATS测试仿真-移除列车",
"parameters": [
{
"type": "string",
@ -1449,21 +1449,13 @@ const docTemplate = `{
"dto.RemoveTrainDto": {
"type": "object",
"properties": {
"headLinkId": {
"description": "车头所在link的索引",
"type": "string"
},
"headLinkOffset": {
"description": "车头所在link内的偏移量单位为mm",
"type": "integer"
},
"simulationId": {
"description": "仿真id",
"type": "string"
},
"up": {
"description": "列车方向,true-上行false-下行",
"type": "boolean"
"trainId": {
"description": "新添加的列车的索引",
"type": "string"
}
}
},

View File

@ -1041,7 +1041,7 @@
"JwtAuth": []
}
],
"description": "ATS测试仿真-添加列车",
"description": "ATS测试仿真-移除列车",
"consumes": [
"application/json"
],
@ -1051,7 +1051,7 @@
"tags": [
"ATS测试仿真Api"
],
"summary": "获取ATS测试系统所有仿真实例的基本信息",
"summary": "ATS测试仿真-移除列车",
"parameters": [
{
"type": "string",
@ -1442,21 +1442,13 @@
"dto.RemoveTrainDto": {
"type": "object",
"properties": {
"headLinkId": {
"description": "车头所在link的索引",
"type": "string"
},
"headLinkOffset": {
"description": "车头所在link内的偏移量单位为mm",
"type": "integer"
},
"simulationId": {
"description": "仿真id",
"type": "string"
},
"up": {
"description": "列车方向,true-上行false-下行",
"type": "boolean"
"trainId": {
"description": "新添加的列车的索引",
"type": "string"
}
}
},

View File

@ -111,18 +111,12 @@ definitions:
type: object
dto.RemoveTrainDto:
properties:
headLinkId:
description: 车头所在link的索引
type: string
headLinkOffset:
description: 车头所在link内的偏移量单位为mm
type: integer
simulationId:
description: 仿真id
type: string
up:
description: 列车方向,true-上行false-下行
type: boolean
trainId:
description: 新添加的列车的索引
type: string
type: object
dto.SimulationCreateReqDto:
properties:
@ -882,7 +876,7 @@ paths:
post:
consumes:
- application/json
description: ATS测试仿真-添加列车
description: ATS测试仿真-移除列车
parameters:
- description: JWT Token
in: header
@ -908,7 +902,7 @@ paths:
$ref: '#/definitions/dto.ErrorDto'
security:
- JwtAuth: []
summary: 获取ATS测试系统所有仿真实例的基本信息
summary: ATS测试仿真-移除列车
tags:
- ATS测试仿真Api
/api/v1/user/current:

View File

@ -39,7 +39,7 @@ type AddTrainRspDto struct {
/////////////////////////////////////////////////////////////////////////////////
// 仿真移除列车请求
type RemoveTrainDto AddTrainReqDto
type RemoveTrainDto AddTrainRspDto
/////////////////////////////////////////////////////////////////////////////////