2023-07-14 16:28:47 +08:00
|
|
|
|
basePath: /
|
|
|
|
|
definitions:
|
2023-07-28 15:49:44 +08:00
|
|
|
|
dto.AddTrainReqDto:
|
|
|
|
|
properties:
|
|
|
|
|
headLinkId:
|
|
|
|
|
description: 车头所在link的索引
|
|
|
|
|
type: string
|
|
|
|
|
headLinkOffset:
|
|
|
|
|
description: 车头所在link内的偏移量,单位为mm
|
|
|
|
|
type: integer
|
|
|
|
|
simulationId:
|
|
|
|
|
description: 仿真id
|
|
|
|
|
type: string
|
|
|
|
|
up:
|
|
|
|
|
description: 列车方向,true-上行,false-下行
|
|
|
|
|
type: boolean
|
|
|
|
|
type: object
|
|
|
|
|
dto.AddTrainRspDto:
|
|
|
|
|
properties:
|
|
|
|
|
simulationId:
|
|
|
|
|
description: 仿真id
|
|
|
|
|
type: string
|
|
|
|
|
trainId:
|
|
|
|
|
description: 新添加的列车的索引
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
2023-07-31 18:20:00 +08:00
|
|
|
|
dto.CheckMapDataReqDto:
|
|
|
|
|
properties:
|
|
|
|
|
data:
|
|
|
|
|
items:
|
|
|
|
|
type: integer
|
|
|
|
|
type: array
|
|
|
|
|
required:
|
|
|
|
|
- data
|
|
|
|
|
type: object
|
|
|
|
|
dto.CheckMapDataRspDto:
|
|
|
|
|
properties:
|
|
|
|
|
errors:
|
|
|
|
|
items:
|
|
|
|
|
type: string
|
|
|
|
|
type: array
|
|
|
|
|
success:
|
|
|
|
|
type: boolean
|
|
|
|
|
type: object
|
2023-07-14 16:28:47 +08:00
|
|
|
|
dto.ErrorDto:
|
|
|
|
|
properties:
|
|
|
|
|
code:
|
|
|
|
|
type: integer
|
|
|
|
|
message:
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
|
|
|
|
dto.LoginDto:
|
|
|
|
|
properties:
|
|
|
|
|
account:
|
|
|
|
|
description: 账号
|
|
|
|
|
example: "17791995809"
|
|
|
|
|
type: string
|
|
|
|
|
password:
|
|
|
|
|
description: 加密密码
|
|
|
|
|
example: 95129dbaace576e46f41a629e6f35d5c
|
|
|
|
|
type: string
|
|
|
|
|
required:
|
|
|
|
|
- account
|
|
|
|
|
- password
|
|
|
|
|
type: object
|
|
|
|
|
dto.OrderItem:
|
|
|
|
|
properties:
|
|
|
|
|
asc:
|
|
|
|
|
type: boolean
|
|
|
|
|
column:
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
|
|
|
|
dto.PageDto:
|
|
|
|
|
properties:
|
|
|
|
|
orders:
|
|
|
|
|
description: 排序项
|
|
|
|
|
items:
|
|
|
|
|
$ref: '#/definitions/dto.OrderItem'
|
|
|
|
|
type: array
|
|
|
|
|
page:
|
|
|
|
|
description: 页码
|
|
|
|
|
example: 1
|
|
|
|
|
type: integer
|
|
|
|
|
records: {}
|
|
|
|
|
size:
|
|
|
|
|
description: 页面行数
|
|
|
|
|
example: 10
|
|
|
|
|
type: integer
|
|
|
|
|
total:
|
|
|
|
|
type: integer
|
|
|
|
|
required:
|
|
|
|
|
- page
|
|
|
|
|
- size
|
|
|
|
|
type: object
|
2023-07-28 11:15:44 +08:00
|
|
|
|
dto.RegisterUser:
|
|
|
|
|
properties:
|
|
|
|
|
id:
|
|
|
|
|
type: integer
|
|
|
|
|
mobile:
|
|
|
|
|
description: 手机号
|
|
|
|
|
type: string
|
|
|
|
|
name:
|
|
|
|
|
description: 名字
|
|
|
|
|
type: string
|
|
|
|
|
password:
|
|
|
|
|
description: 密码
|
|
|
|
|
type: string
|
|
|
|
|
register_time:
|
|
|
|
|
description: 注册时间
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
2023-07-31 18:20:00 +08:00
|
|
|
|
dto.RemoveTrainDto:
|
|
|
|
|
properties:
|
|
|
|
|
simulationId:
|
|
|
|
|
description: 仿真id
|
|
|
|
|
type: string
|
|
|
|
|
trainId:
|
|
|
|
|
description: 新添加的列车的索引
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
2023-07-28 15:49:44 +08:00
|
|
|
|
dto.SimulationCreateReqDto:
|
|
|
|
|
properties:
|
|
|
|
|
mapId:
|
|
|
|
|
description: 地图id
|
|
|
|
|
type: integer
|
|
|
|
|
type: object
|
|
|
|
|
dto.SimulationCreateRspDto:
|
|
|
|
|
properties:
|
|
|
|
|
mapId:
|
|
|
|
|
description: 地图id
|
|
|
|
|
type: integer
|
|
|
|
|
simulationId:
|
|
|
|
|
description: 仿真id
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
2023-07-31 18:20:00 +08:00
|
|
|
|
dto.SimulationInfoRepDto:
|
|
|
|
|
properties:
|
|
|
|
|
mapId:
|
|
|
|
|
type: string
|
|
|
|
|
simulationId:
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
|
|
|
|
dto.SwitchOperationReqDto:
|
|
|
|
|
properties:
|
|
|
|
|
simulationId:
|
|
|
|
|
type: string
|
|
|
|
|
switchIndex:
|
|
|
|
|
type: string
|
|
|
|
|
turnNormal:
|
|
|
|
|
type: boolean
|
|
|
|
|
turnReverse:
|
|
|
|
|
type: boolean
|
|
|
|
|
required:
|
|
|
|
|
- simulationId
|
|
|
|
|
- switchIndex
|
2023-08-01 14:47:04 +08:00
|
|
|
|
- turnNormal
|
|
|
|
|
- turnReverse
|
2023-07-31 18:20:00 +08:00
|
|
|
|
type: object
|
2023-07-14 16:28:47 +08:00
|
|
|
|
dto.TokenRespDto:
|
|
|
|
|
properties:
|
|
|
|
|
code:
|
|
|
|
|
type: integer
|
|
|
|
|
expire:
|
|
|
|
|
type: string
|
|
|
|
|
token:
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
2023-07-18 17:19:03 +08:00
|
|
|
|
model.Drafting:
|
|
|
|
|
properties:
|
|
|
|
|
created_at:
|
|
|
|
|
description: 创建时间
|
|
|
|
|
type: string
|
|
|
|
|
creator_id:
|
|
|
|
|
description: 创建人id
|
|
|
|
|
type: integer
|
|
|
|
|
id:
|
|
|
|
|
description: id
|
|
|
|
|
type: integer
|
|
|
|
|
name:
|
|
|
|
|
description: 草稿图名称
|
|
|
|
|
type: string
|
|
|
|
|
proto:
|
|
|
|
|
description: 绘图数据
|
|
|
|
|
items:
|
|
|
|
|
type: integer
|
|
|
|
|
type: array
|
|
|
|
|
update_at:
|
|
|
|
|
description: 修改时间
|
|
|
|
|
type: string
|
|
|
|
|
type: object
|
|
|
|
|
model.PublishedGi:
|
|
|
|
|
properties:
|
|
|
|
|
id:
|
|
|
|
|
description: id
|
|
|
|
|
type: integer
|
|
|
|
|
name:
|
|
|
|
|
description: 发布图形界面名称
|
|
|
|
|
type: string
|
|
|
|
|
proto:
|
|
|
|
|
description: 图形界面数据
|
|
|
|
|
items:
|
|
|
|
|
type: integer
|
|
|
|
|
type: array
|
|
|
|
|
publish_at:
|
|
|
|
|
description: 发布时间
|
|
|
|
|
type: string
|
|
|
|
|
user_id:
|
|
|
|
|
description: 发布用户id
|
|
|
|
|
type: integer
|
|
|
|
|
type: object
|
2023-08-01 14:47:04 +08:00
|
|
|
|
host: localhost:9091
|
2023-07-14 16:28:47 +08:00
|
|
|
|
info:
|
|
|
|
|
contact: {}
|
|
|
|
|
description: CBTC测试服务.
|
|
|
|
|
title: CBTC测试系统API
|
|
|
|
|
version: "1.0"
|
|
|
|
|
paths:
|
2023-07-18 17:19:03 +08:00
|
|
|
|
/api/v1/drafting:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 创建草稿数据
|
|
|
|
|
parameters:
|
|
|
|
|
- in: query
|
|
|
|
|
name: id
|
|
|
|
|
type: integer
|
|
|
|
|
- in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- collectionFormat: csv
|
|
|
|
|
in: query
|
|
|
|
|
items:
|
|
|
|
|
type: integer
|
|
|
|
|
name: proto
|
|
|
|
|
type: array
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 创建草稿
|
|
|
|
|
tags:
|
|
|
|
|
- 草稿Api
|
|
|
|
|
/api/v1/drafting/:id:
|
2023-07-28 11:15:44 +08:00
|
|
|
|
delete:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 删除草稿数据
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 草稿ID
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 删除草稿数据
|
|
|
|
|
tags:
|
|
|
|
|
- 草稿Api
|
2023-07-18 17:19:03 +08:00
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 查询草稿详情
|
2023-07-28 11:15:44 +08:00
|
|
|
|
parameters:
|
|
|
|
|
- description: 草稿ID
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
2023-07-18 17:19:03 +08:00
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/model.Drafting'
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 查询草稿详情
|
|
|
|
|
tags:
|
|
|
|
|
- 草稿Api
|
|
|
|
|
put:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
2023-07-28 15:49:44 +08:00
|
|
|
|
description: 修改草稿信息
|
2023-07-18 17:19:03 +08:00
|
|
|
|
parameters:
|
2023-07-28 11:15:44 +08:00
|
|
|
|
- description: 草稿ID
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
2023-07-18 17:19:03 +08:00
|
|
|
|
- in: query
|
|
|
|
|
name: id
|
|
|
|
|
type: integer
|
|
|
|
|
- in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- collectionFormat: csv
|
|
|
|
|
in: query
|
|
|
|
|
items:
|
|
|
|
|
type: integer
|
|
|
|
|
name: proto
|
|
|
|
|
type: array
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
2023-07-28 15:49:44 +08:00
|
|
|
|
summary: 修改草稿信息
|
2023-07-18 17:19:03 +08:00
|
|
|
|
tags:
|
|
|
|
|
- 草稿Api
|
|
|
|
|
/api/v1/drafting/:id/saveAs:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 草稿另存为
|
|
|
|
|
parameters:
|
2023-07-28 11:15:44 +08:00
|
|
|
|
- description: 源草稿id
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
2023-07-18 17:19:03 +08:00
|
|
|
|
- in: query
|
|
|
|
|
name: id
|
|
|
|
|
type: integer
|
|
|
|
|
- in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- collectionFormat: csv
|
|
|
|
|
in: query
|
|
|
|
|
items:
|
|
|
|
|
type: integer
|
|
|
|
|
name: proto
|
|
|
|
|
type: array
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 草稿另存为
|
|
|
|
|
tags:
|
|
|
|
|
- 草稿Api
|
2023-07-14 18:09:07 +08:00
|
|
|
|
/api/v1/drafting/paging:
|
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 可以通过草稿名称过滤,分页查询草稿
|
|
|
|
|
parameters:
|
|
|
|
|
- in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- description: 页码
|
|
|
|
|
example: 1
|
|
|
|
|
in: query
|
2023-07-31 18:20:00 +08:00
|
|
|
|
name: current
|
2023-07-14 18:09:07 +08:00
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
- description: 页面行数
|
|
|
|
|
example: 10
|
|
|
|
|
in: query
|
|
|
|
|
name: size
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.PageDto'
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 分页查询草稿
|
|
|
|
|
tags:
|
2023-07-18 17:19:03 +08:00
|
|
|
|
- 草稿Api
|
|
|
|
|
/api/v1/publishedGi/{id}:
|
|
|
|
|
delete:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 可以通过名称过滤
|
|
|
|
|
parameters:
|
|
|
|
|
- description: id
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
2023-07-31 10:15:02 +08:00
|
|
|
|
summary: id删除发布的图形数据
|
2023-07-18 17:19:03 +08:00
|
|
|
|
tags:
|
|
|
|
|
- 发布的图形数据Api
|
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 可以通过名称过滤
|
|
|
|
|
parameters:
|
|
|
|
|
- description: id
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/model.PublishedGi'
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: id查询发布的图形数据
|
|
|
|
|
tags:
|
|
|
|
|
- 发布的图形数据Api
|
|
|
|
|
/api/v1/publishedGi/list:
|
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 可以通过名称过滤
|
|
|
|
|
parameters:
|
|
|
|
|
- in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- description: 页码
|
|
|
|
|
example: 1
|
|
|
|
|
in: query
|
2023-07-31 18:20:00 +08:00
|
|
|
|
name: current
|
2023-07-18 17:19:03 +08:00
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
- description: 页面行数
|
|
|
|
|
example: 10
|
|
|
|
|
in: query
|
|
|
|
|
name: size
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
2023-08-01 14:47:04 +08:00
|
|
|
|
- in: query
|
|
|
|
|
name: time
|
|
|
|
|
type: string
|
2023-07-18 17:19:03 +08:00
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
items:
|
|
|
|
|
$ref: '#/definitions/model.PublishedGi'
|
|
|
|
|
type: array
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 列表查询发布的图形数据
|
|
|
|
|
tags:
|
|
|
|
|
- 发布的图形数据Api
|
|
|
|
|
/api/v1/publishedGi/paging:
|
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 可以通过名称过滤
|
|
|
|
|
parameters:
|
|
|
|
|
- in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- description: 页码
|
|
|
|
|
example: 1
|
|
|
|
|
in: query
|
2023-07-31 18:20:00 +08:00
|
|
|
|
name: current
|
2023-07-18 17:19:03 +08:00
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
- description: 页面行数
|
|
|
|
|
example: 10
|
|
|
|
|
in: query
|
|
|
|
|
name: size
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
2023-08-01 14:47:04 +08:00
|
|
|
|
- in: query
|
|
|
|
|
name: time
|
|
|
|
|
type: string
|
2023-07-18 17:19:03 +08:00
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.PageDto'
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 分页查询发布的图形数据
|
|
|
|
|
tags:
|
|
|
|
|
- 发布的图形数据Api
|
|
|
|
|
/api/v1/publishedGi/publish:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 草稿数据的id
|
|
|
|
|
in: query
|
2023-08-01 14:47:04 +08:00
|
|
|
|
name: draftingId
|
2023-07-18 17:19:03 +08:00
|
|
|
|
type: integer
|
|
|
|
|
- description: 发布后的名称
|
|
|
|
|
in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 从草稿发布数据
|
|
|
|
|
tags:
|
|
|
|
|
- 发布的图形数据Api
|
2023-07-31 18:20:00 +08:00
|
|
|
|
/api/v1/simulation/check/data:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: ATS测试仿真-添加列车
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
|
|
|
|
- description: ATS测试仿真-地图数据
|
|
|
|
|
in: body
|
|
|
|
|
name: RemoveTrainDto
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.CheckMapDataReqDto'
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.CheckMapDataRspDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: ATS测试仿真地图数据校验
|
|
|
|
|
tags:
|
|
|
|
|
- ATS测试仿真Api
|
2023-07-28 15:49:44 +08:00
|
|
|
|
/api/v1/simulation/create:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 创建ATS测试仿真
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
|
|
|
|
- description: 创建仿真请求
|
|
|
|
|
in: body
|
|
|
|
|
name: SimulationCreateReqDto
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.SimulationCreateReqDto'
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.SimulationCreateRspDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 创建ATS测试仿真
|
|
|
|
|
tags:
|
|
|
|
|
- ATS测试仿真Api
|
2023-08-01 14:47:04 +08:00
|
|
|
|
/api/v1/simulation/list:
|
|
|
|
|
get:
|
2023-07-31 18:20:00 +08:00
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: ATS测试仿真-添加列车
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
2023-08-01 14:47:04 +08:00
|
|
|
|
items:
|
|
|
|
|
$ref: '#/definitions/dto.SimulationInfoRepDto'
|
|
|
|
|
type: array
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
2023-08-01 14:47:04 +08:00
|
|
|
|
summary: 获取ATS测试系统所有仿真实例的基本信息
|
2023-07-31 18:20:00 +08:00
|
|
|
|
tags:
|
|
|
|
|
- ATS测试仿真Api
|
2023-08-01 14:47:04 +08:00
|
|
|
|
/api/v1/simulation/switch/operation:
|
|
|
|
|
post:
|
2023-07-31 18:20:00 +08:00
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: ATS测试仿真-添加列车
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
2023-08-01 14:47:04 +08:00
|
|
|
|
- description: ATS测试仿真-操作道岔
|
|
|
|
|
in: body
|
|
|
|
|
name: RemoveTrainDto
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.SwitchOperationReqDto'
|
2023-07-31 18:20:00 +08:00
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
2023-08-01 14:47:04 +08:00
|
|
|
|
type: string
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
2023-08-01 14:47:04 +08:00
|
|
|
|
summary: 获取ATS测试-操作道岔
|
2023-07-31 18:20:00 +08:00
|
|
|
|
tags:
|
|
|
|
|
- ATS测试仿真Api
|
2023-08-01 14:47:04 +08:00
|
|
|
|
/api/v1/simulation/train/add:
|
2023-07-31 18:20:00 +08:00
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: ATS测试仿真-添加列车
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
2023-08-01 14:47:04 +08:00
|
|
|
|
- description: ATS测试仿真-添加列车
|
2023-07-31 18:20:00 +08:00
|
|
|
|
in: body
|
2023-08-01 14:47:04 +08:00
|
|
|
|
name: AddTrainReqDto
|
2023-07-31 18:20:00 +08:00
|
|
|
|
required: true
|
|
|
|
|
schema:
|
2023-08-01 14:47:04 +08:00
|
|
|
|
$ref: '#/definitions/dto.AddTrainReqDto'
|
2023-07-31 18:20:00 +08:00
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
2023-08-01 14:47:04 +08:00
|
|
|
|
$ref: '#/definitions/dto.AddTrainRspDto'
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
2023-08-01 14:47:04 +08:00
|
|
|
|
summary: ATS测试仿真-添加列车
|
2023-07-31 18:20:00 +08:00
|
|
|
|
tags:
|
|
|
|
|
- ATS测试仿真Api
|
2023-08-01 14:47:04 +08:00
|
|
|
|
/api/v1/simulation/train/destroy/{id}:
|
|
|
|
|
get:
|
2023-07-28 15:49:44 +08:00
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: ATS测试仿真-添加列车
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
2023-08-01 14:47:04 +08:00
|
|
|
|
- description: 仿真id
|
|
|
|
|
in: path
|
|
|
|
|
name: id
|
2023-07-28 15:49:44 +08:00
|
|
|
|
required: true
|
2023-08-01 14:47:04 +08:00
|
|
|
|
type: integer
|
2023-07-28 15:49:44 +08:00
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
2023-08-01 14:47:04 +08:00
|
|
|
|
type: string
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
2023-08-01 14:47:04 +08:00
|
|
|
|
summary: ATS仿真销毁
|
2023-07-28 15:49:44 +08:00
|
|
|
|
tags:
|
|
|
|
|
- ATS测试仿真Api
|
2023-07-31 18:20:00 +08:00
|
|
|
|
/api/v1/simulation/train/remove:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: ATS测试仿真-移除列车
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
|
|
|
|
- description: ATS测试仿真-移除列车
|
|
|
|
|
in: body
|
|
|
|
|
name: RemoveTrainDto
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.RemoveTrainDto'
|
|
|
|
|
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
|
2023-07-28 11:15:44 +08:00
|
|
|
|
/api/v1/user/current:
|
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 获取当前登录用户信息
|
|
|
|
|
parameters:
|
|
|
|
|
- description: JWT Token
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
required: true
|
|
|
|
|
type: string
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.RegisterUser'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
summary: 获取当前登录用户信息
|
|
|
|
|
tags:
|
|
|
|
|
- 用户Api
|
2023-07-14 16:28:47 +08:00
|
|
|
|
/api/v1/user/login:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 用户登录
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 登录信息
|
|
|
|
|
in: body
|
|
|
|
|
name: loginInfo
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.LoginDto'
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.TokenRespDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
summary: 用户登录
|
|
|
|
|
tags:
|
|
|
|
|
- 用户Api
|
|
|
|
|
/api/v1/user/paging:
|
|
|
|
|
get:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 可以通过用户名称过滤,分页查询用户
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 手机号
|
|
|
|
|
in: query
|
|
|
|
|
name: mobile
|
|
|
|
|
type: string
|
|
|
|
|
- description: 用户名
|
|
|
|
|
in: query
|
|
|
|
|
name: name
|
|
|
|
|
type: string
|
|
|
|
|
- description: 页码
|
|
|
|
|
example: 1
|
|
|
|
|
in: query
|
2023-07-31 18:20:00 +08:00
|
|
|
|
name: current
|
2023-07-14 16:28:47 +08:00
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
- description: 页面行数
|
|
|
|
|
example: 10
|
|
|
|
|
in: query
|
|
|
|
|
name: size
|
|
|
|
|
required: true
|
|
|
|
|
type: integer
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.PageDto'
|
|
|
|
|
"401":
|
|
|
|
|
description: Unauthorized
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"404":
|
|
|
|
|
description: Not Found
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
security:
|
|
|
|
|
- JwtAuth: []
|
|
|
|
|
summary: 分页查询用户
|
|
|
|
|
tags:
|
|
|
|
|
- 用户Api
|
2023-07-28 11:15:44 +08:00
|
|
|
|
/api/v1/user/register:
|
|
|
|
|
post:
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
description: 用户注册
|
|
|
|
|
parameters:
|
|
|
|
|
- description: 用户注册信息
|
|
|
|
|
in: body
|
|
|
|
|
name: loginInfo
|
|
|
|
|
required: true
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.RegisterUser'
|
|
|
|
|
produces:
|
|
|
|
|
- application/json
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: OK
|
|
|
|
|
schema:
|
|
|
|
|
type: string
|
|
|
|
|
"500":
|
|
|
|
|
description: Internal Server Error
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/dto.ErrorDto'
|
|
|
|
|
summary: 用户注册
|
|
|
|
|
tags:
|
|
|
|
|
- 用户Api
|
2023-07-14 16:28:47 +08:00
|
|
|
|
securityDefinitions:
|
|
|
|
|
JwtAuth:
|
|
|
|
|
in: header
|
|
|
|
|
name: Authorization
|
|
|
|
|
type: apiKey
|
|
|
|
|
swagger: "2.0"
|