【更新swagger】
This commit is contained in:
parent
2bde46a97a
commit
f7db9ebb13
94
docs/docs.go
94
docs/docs.go
|
@ -4679,26 +4679,11 @@ const docTemplate = `{
|
|||
],
|
||||
"summary": "创建列车轮径",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "axial_position",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "diameter",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "install_direction",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "max_diameter",
|
||||
|
@ -4893,7 +4878,7 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/model.TrainWheelDiameter"
|
||||
"$ref": "#/definitions/model.TrainWheel"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
|
@ -4941,26 +4926,11 @@ const docTemplate = `{
|
|||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "axial_position",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "diameter",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "install_direction",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "max_diameter",
|
||||
|
@ -5286,6 +5256,10 @@ const docTemplate = `{
|
|||
"up": {
|
||||
"description": "列车方向,true-上行,false-下行",
|
||||
"type": "boolean"
|
||||
},
|
||||
"wheelDiameter": {
|
||||
"description": "列车轮径",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -6084,30 +6058,18 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"model.TrainWheelDiameter": {
|
||||
"model.TrainWheel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"axial_position": {
|
||||
"description": "速度传感器安装轴位,本端车前进方向的第几轴",
|
||||
"type": "integer"
|
||||
},
|
||||
"diameter": {
|
||||
"description": "速度传感器安装处车轮的出厂直径(mm)",
|
||||
"type": "integer"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"install_direction": {
|
||||
"description": "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧",
|
||||
"type": "string"
|
||||
},
|
||||
"max_diameter": {
|
||||
"description": "速度传感器安装处车轮的最大直径(mm)",
|
||||
"description": "车轮的最大直径(mm)",
|
||||
"type": "integer"
|
||||
},
|
||||
"min_diameter": {
|
||||
"description": "速度传感器安装处车轮的最小直径(mm)",
|
||||
"description": "车轮的最小直径(mm)",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
|
@ -6119,6 +6081,13 @@ const docTemplate = `{
|
|||
"request_proto.PsdOperationReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asdCodes": {
|
||||
"description": "无法关闭/无法开启故障涉及的滑动门的编号",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"deviceId": {
|
||||
"description": "设备id",
|
||||
"type": "string"
|
||||
|
@ -6153,18 +6122,36 @@ const docTemplate = `{
|
|||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18
|
||||
],
|
||||
"x-enum-comments": {
|
||||
"Psd_AsdCannotClose": "滑动门无法关闭",
|
||||
"Psd_AsdCannotOpen": "滑动门无法开门",
|
||||
"Psd_CancelAsdCannotClose": "取消滑动门无法关闭",
|
||||
"Psd_CancelAsdCannotOpen": "取消滑动门无法开门",
|
||||
"Psd_CancelForce": "取消强制",
|
||||
"Psd_CancelGm": "取消关门",
|
||||
"Psd_CancelKm4": "取消四编组开门",
|
||||
"Psd_CancelKm8": "取消八编组开门",
|
||||
"Psd_CancelQDTC": "取消启动探测",
|
||||
"Psd_CancelTZTC": "取消停止探测",
|
||||
"Psd_ForceGm": "强制关门",
|
||||
"Psd_ForceKm4": "强制四编组开门",
|
||||
"Psd_ForceKm8": "强制八编组开门",
|
||||
"Psd_Gm": "关门",
|
||||
"Psd_Km4": "四编组开门",
|
||||
"Psd_Km8": "八编组开门"
|
||||
"Psd_Km8": "八编组开门",
|
||||
"Psd_QDTC": "启动探测",
|
||||
"Psd_TZTC": "停止探测"
|
||||
},
|
||||
"x-enum-varnames": [
|
||||
"Psd_Undefined",
|
||||
|
@ -6176,7 +6163,16 @@ const docTemplate = `{
|
|||
"Psd_CancelGm",
|
||||
"Psd_ForceKm4",
|
||||
"Psd_ForceKm8",
|
||||
"Psd_ForceGm"
|
||||
"Psd_ForceGm",
|
||||
"Psd_CancelForce",
|
||||
"Psd_AsdCannotOpen",
|
||||
"Psd_CancelAsdCannotOpen",
|
||||
"Psd_AsdCannotClose",
|
||||
"Psd_CancelAsdCannotClose",
|
||||
"Psd_QDTC",
|
||||
"Psd_CancelQDTC",
|
||||
"Psd_TZTC",
|
||||
"Psd_CancelTZTC"
|
||||
]
|
||||
},
|
||||
"request_proto.Section_Operation": {
|
||||
|
|
|
@ -4672,26 +4672,11 @@
|
|||
],
|
||||
"summary": "创建列车轮径",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "axial_position",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "diameter",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "install_direction",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "max_diameter",
|
||||
|
@ -4886,7 +4871,7 @@
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/model.TrainWheelDiameter"
|
||||
"$ref": "#/definitions/model.TrainWheel"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
|
@ -4934,26 +4919,11 @@
|
|||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "axial_position",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "diameter",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "install_direction",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"name": "max_diameter",
|
||||
|
@ -5279,6 +5249,10 @@
|
|||
"up": {
|
||||
"description": "列车方向,true-上行,false-下行",
|
||||
"type": "boolean"
|
||||
},
|
||||
"wheelDiameter": {
|
||||
"description": "列车轮径",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -6077,30 +6051,18 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"model.TrainWheelDiameter": {
|
||||
"model.TrainWheel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"axial_position": {
|
||||
"description": "速度传感器安装轴位,本端车前进方向的第几轴",
|
||||
"type": "integer"
|
||||
},
|
||||
"diameter": {
|
||||
"description": "速度传感器安装处车轮的出厂直径(mm)",
|
||||
"type": "integer"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"install_direction": {
|
||||
"description": "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧",
|
||||
"type": "string"
|
||||
},
|
||||
"max_diameter": {
|
||||
"description": "速度传感器安装处车轮的最大直径(mm)",
|
||||
"description": "车轮的最大直径(mm)",
|
||||
"type": "integer"
|
||||
},
|
||||
"min_diameter": {
|
||||
"description": "速度传感器安装处车轮的最小直径(mm)",
|
||||
"description": "车轮的最小直径(mm)",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
|
@ -6112,6 +6074,13 @@
|
|||
"request_proto.PsdOperationReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asdCodes": {
|
||||
"description": "无法关闭/无法开启故障涉及的滑动门的编号",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"deviceId": {
|
||||
"description": "设备id",
|
||||
"type": "string"
|
||||
|
@ -6146,18 +6115,36 @@
|
|||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18
|
||||
],
|
||||
"x-enum-comments": {
|
||||
"Psd_AsdCannotClose": "滑动门无法关闭",
|
||||
"Psd_AsdCannotOpen": "滑动门无法开门",
|
||||
"Psd_CancelAsdCannotClose": "取消滑动门无法关闭",
|
||||
"Psd_CancelAsdCannotOpen": "取消滑动门无法开门",
|
||||
"Psd_CancelForce": "取消强制",
|
||||
"Psd_CancelGm": "取消关门",
|
||||
"Psd_CancelKm4": "取消四编组开门",
|
||||
"Psd_CancelKm8": "取消八编组开门",
|
||||
"Psd_CancelQDTC": "取消启动探测",
|
||||
"Psd_CancelTZTC": "取消停止探测",
|
||||
"Psd_ForceGm": "强制关门",
|
||||
"Psd_ForceKm4": "强制四编组开门",
|
||||
"Psd_ForceKm8": "强制八编组开门",
|
||||
"Psd_Gm": "关门",
|
||||
"Psd_Km4": "四编组开门",
|
||||
"Psd_Km8": "八编组开门"
|
||||
"Psd_Km8": "八编组开门",
|
||||
"Psd_QDTC": "启动探测",
|
||||
"Psd_TZTC": "停止探测"
|
||||
},
|
||||
"x-enum-varnames": [
|
||||
"Psd_Undefined",
|
||||
|
@ -6169,7 +6156,16 @@
|
|||
"Psd_CancelGm",
|
||||
"Psd_ForceKm4",
|
||||
"Psd_ForceKm8",
|
||||
"Psd_ForceGm"
|
||||
"Psd_ForceGm",
|
||||
"Psd_CancelForce",
|
||||
"Psd_AsdCannotOpen",
|
||||
"Psd_CancelAsdCannotOpen",
|
||||
"Psd_AsdCannotClose",
|
||||
"Psd_CancelAsdCannotClose",
|
||||
"Psd_QDTC",
|
||||
"Psd_CancelQDTC",
|
||||
"Psd_TZTC",
|
||||
"Psd_CancelTZTC"
|
||||
]
|
||||
},
|
||||
"request_proto.Section_Operation": {
|
||||
|
|
|
@ -29,6 +29,9 @@ definitions:
|
|||
up:
|
||||
description: 列车方向,true-上行,false-下行
|
||||
type: boolean
|
||||
wheelDiameter:
|
||||
description: 列车轮径
|
||||
type: integer
|
||||
type: object
|
||||
dto.AddTrainRspDto:
|
||||
properties:
|
||||
|
@ -579,24 +582,15 @@ definitions:
|
|||
description: 总长度
|
||||
type: integer
|
||||
type: object
|
||||
model.TrainWheelDiameter:
|
||||
model.TrainWheel:
|
||||
properties:
|
||||
axial_position:
|
||||
description: 速度传感器安装轴位,本端车前进方向的第几轴
|
||||
type: integer
|
||||
diameter:
|
||||
description: 速度传感器安装处车轮的出厂直径(mm)
|
||||
type: integer
|
||||
id:
|
||||
type: integer
|
||||
install_direction:
|
||||
description: "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧"
|
||||
type: string
|
||||
max_diameter:
|
||||
description: 速度传感器安装处车轮的最大直径(mm)
|
||||
description: 车轮的最大直径(mm)
|
||||
type: integer
|
||||
min_diameter:
|
||||
description: 速度传感器安装处车轮的最小直径(mm)
|
||||
description: 车轮的最小直径(mm)
|
||||
type: integer
|
||||
name:
|
||||
description: 名称
|
||||
|
@ -614,17 +608,35 @@ definitions:
|
|||
- 7
|
||||
- 8
|
||||
- 9
|
||||
- 10
|
||||
- 11
|
||||
- 12
|
||||
- 13
|
||||
- 14
|
||||
- 15
|
||||
- 16
|
||||
- 17
|
||||
- 18
|
||||
type: integer
|
||||
x-enum-comments:
|
||||
Psd_AsdCannotClose: 滑动门无法关闭
|
||||
Psd_AsdCannotOpen: 滑动门无法开门
|
||||
Psd_CancelAsdCannotClose: 取消滑动门无法关闭
|
||||
Psd_CancelAsdCannotOpen: 取消滑动门无法开门
|
||||
Psd_CancelForce: 取消强制
|
||||
Psd_CancelGm: 取消关门
|
||||
Psd_CancelKm4: 取消四编组开门
|
||||
Psd_CancelKm8: 取消八编组开门
|
||||
Psd_CancelQDTC: 取消启动探测
|
||||
Psd_CancelTZTC: 取消停止探测
|
||||
Psd_ForceGm: 强制关门
|
||||
Psd_ForceKm4: 强制四编组开门
|
||||
Psd_ForceKm8: 强制八编组开门
|
||||
Psd_Gm: 关门
|
||||
Psd_Km4: 四编组开门
|
||||
Psd_Km8: 八编组开门
|
||||
Psd_QDTC: 启动探测
|
||||
Psd_TZTC: 停止探测
|
||||
x-enum-varnames:
|
||||
- Psd_Undefined
|
||||
- Psd_Km4
|
||||
|
@ -636,8 +648,22 @@ definitions:
|
|||
- Psd_ForceKm4
|
||||
- Psd_ForceKm8
|
||||
- Psd_ForceGm
|
||||
- Psd_CancelForce
|
||||
- Psd_AsdCannotOpen
|
||||
- Psd_CancelAsdCannotOpen
|
||||
- Psd_AsdCannotClose
|
||||
- Psd_CancelAsdCannotClose
|
||||
- Psd_QDTC
|
||||
- Psd_CancelQDTC
|
||||
- Psd_TZTC
|
||||
- Psd_CancelTZTC
|
||||
request_proto.PsdOperationReq:
|
||||
properties:
|
||||
asdCodes:
|
||||
description: 无法关闭/无法开启故障涉及的滑动门的编号
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
deviceId:
|
||||
description: 设备id
|
||||
type: string
|
||||
|
@ -3757,18 +3783,9 @@ paths:
|
|||
- application/json
|
||||
description: 创建列车轮径数据
|
||||
parameters:
|
||||
- in: query
|
||||
name: axial_position
|
||||
type: integer
|
||||
- in: query
|
||||
name: diameter
|
||||
type: integer
|
||||
- in: query
|
||||
name: id
|
||||
type: integer
|
||||
- in: query
|
||||
name: install_direction
|
||||
type: string
|
||||
- in: query
|
||||
name: max_diameter
|
||||
type: integer
|
||||
|
@ -3849,7 +3866,7 @@ paths:
|
|||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/model.TrainWheelDiameter'
|
||||
$ref: '#/definitions/model.TrainWheel'
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
|
@ -3877,18 +3894,9 @@ paths:
|
|||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- in: query
|
||||
name: axial_position
|
||||
type: integer
|
||||
- in: query
|
||||
name: diameter
|
||||
type: integer
|
||||
- in: query
|
||||
name: id
|
||||
type: integer
|
||||
- in: query
|
||||
name: install_direction
|
||||
type: string
|
||||
- in: query
|
||||
name: max_diameter
|
||||
type: integer
|
||||
|
|
Loading…
Reference in New Issue