【更新swagger】

This commit is contained in:
weizhihong 2023-11-13 15:41:03 +08:00
parent 2bde46a97a
commit f7db9ebb13
3 changed files with 129 additions and 129 deletions

View File

@ -4679,26 +4679,11 @@ const docTemplate = `{
], ],
"summary": "创建列车轮径", "summary": "创建列车轮径",
"parameters": [ "parameters": [
{
"type": "integer",
"name": "axial_position",
"in": "query"
},
{
"type": "integer",
"name": "diameter",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "id", "name": "id",
"in": "query" "in": "query"
}, },
{
"type": "string",
"name": "install_direction",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "max_diameter", "name": "max_diameter",
@ -4893,7 +4878,7 @@ const docTemplate = `{
"200": { "200": {
"description": "OK", "description": "OK",
"schema": { "schema": {
"$ref": "#/definitions/model.TrainWheelDiameter" "$ref": "#/definitions/model.TrainWheel"
} }
}, },
"401": { "401": {
@ -4941,26 +4926,11 @@ const docTemplate = `{
"in": "path", "in": "path",
"required": true "required": true
}, },
{
"type": "integer",
"name": "axial_position",
"in": "query"
},
{
"type": "integer",
"name": "diameter",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "id", "name": "id",
"in": "query" "in": "query"
}, },
{
"type": "string",
"name": "install_direction",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "max_diameter", "name": "max_diameter",
@ -5286,6 +5256,10 @@ const docTemplate = `{
"up": { "up": {
"description": "列车方向,true-上行false-下行", "description": "列车方向,true-上行false-下行",
"type": "boolean" "type": "boolean"
},
"wheelDiameter": {
"description": "列车轮径",
"type": "integer"
} }
} }
}, },
@ -6084,30 +6058,18 @@ const docTemplate = `{
} }
} }
}, },
"model.TrainWheelDiameter": { "model.TrainWheel": {
"type": "object", "type": "object",
"properties": { "properties": {
"axial_position": {
"description": "速度传感器安装轴位,本端车前进方向的第几轴",
"type": "integer"
},
"diameter": {
"description": "速度传感器安装处车轮的出厂直径(mm)",
"type": "integer"
},
"id": { "id": {
"type": "integer" "type": "integer"
}, },
"install_direction": {
"description": "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧",
"type": "string"
},
"max_diameter": { "max_diameter": {
"description": "速度传感器安装处车轮的最大直径(mm)", "description": "车轮的最大直径(mm)",
"type": "integer" "type": "integer"
}, },
"min_diameter": { "min_diameter": {
"description": "速度传感器安装处车轮的最小直径(mm)", "description": "车轮的最小直径(mm)",
"type": "integer" "type": "integer"
}, },
"name": { "name": {
@ -6119,6 +6081,13 @@ const docTemplate = `{
"request_proto.PsdOperationReq": { "request_proto.PsdOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {
"asdCodes": {
"description": "无法关闭/无法开启故障涉及的滑动门的编号",
"type": "array",
"items": {
"type": "integer"
}
},
"deviceId": { "deviceId": {
"description": "设备id", "description": "设备id",
"type": "string" "type": "string"
@ -6153,18 +6122,36 @@ const docTemplate = `{
6, 6,
7, 7,
8, 8,
9 9,
10,
11,
12,
13,
14,
15,
16,
17,
18
], ],
"x-enum-comments": { "x-enum-comments": {
"Psd_AsdCannotClose": "滑动门无法关闭",
"Psd_AsdCannotOpen": "滑动门无法开门",
"Psd_CancelAsdCannotClose": "取消滑动门无法关闭",
"Psd_CancelAsdCannotOpen": "取消滑动门无法开门",
"Psd_CancelForce": "取消强制",
"Psd_CancelGm": "取消关门", "Psd_CancelGm": "取消关门",
"Psd_CancelKm4": "取消四编组开门", "Psd_CancelKm4": "取消四编组开门",
"Psd_CancelKm8": "取消八编组开门", "Psd_CancelKm8": "取消八编组开门",
"Psd_CancelQDTC": "取消启动探测",
"Psd_CancelTZTC": "取消停止探测",
"Psd_ForceGm": "强制关门", "Psd_ForceGm": "强制关门",
"Psd_ForceKm4": "强制四编组开门", "Psd_ForceKm4": "强制四编组开门",
"Psd_ForceKm8": "强制八编组开门", "Psd_ForceKm8": "强制八编组开门",
"Psd_Gm": "关门", "Psd_Gm": "关门",
"Psd_Km4": "四编组开门", "Psd_Km4": "四编组开门",
"Psd_Km8": "八编组开门" "Psd_Km8": "八编组开门",
"Psd_QDTC": "启动探测",
"Psd_TZTC": "停止探测"
}, },
"x-enum-varnames": [ "x-enum-varnames": [
"Psd_Undefined", "Psd_Undefined",
@ -6176,7 +6163,16 @@ const docTemplate = `{
"Psd_CancelGm", "Psd_CancelGm",
"Psd_ForceKm4", "Psd_ForceKm4",
"Psd_ForceKm8", "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": { "request_proto.Section_Operation": {

View File

@ -4672,26 +4672,11 @@
], ],
"summary": "创建列车轮径", "summary": "创建列车轮径",
"parameters": [ "parameters": [
{
"type": "integer",
"name": "axial_position",
"in": "query"
},
{
"type": "integer",
"name": "diameter",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "id", "name": "id",
"in": "query" "in": "query"
}, },
{
"type": "string",
"name": "install_direction",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "max_diameter", "name": "max_diameter",
@ -4886,7 +4871,7 @@
"200": { "200": {
"description": "OK", "description": "OK",
"schema": { "schema": {
"$ref": "#/definitions/model.TrainWheelDiameter" "$ref": "#/definitions/model.TrainWheel"
} }
}, },
"401": { "401": {
@ -4934,26 +4919,11 @@
"in": "path", "in": "path",
"required": true "required": true
}, },
{
"type": "integer",
"name": "axial_position",
"in": "query"
},
{
"type": "integer",
"name": "diameter",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "id", "name": "id",
"in": "query" "in": "query"
}, },
{
"type": "string",
"name": "install_direction",
"in": "query"
},
{ {
"type": "integer", "type": "integer",
"name": "max_diameter", "name": "max_diameter",
@ -5279,6 +5249,10 @@
"up": { "up": {
"description": "列车方向,true-上行false-下行", "description": "列车方向,true-上行false-下行",
"type": "boolean" "type": "boolean"
},
"wheelDiameter": {
"description": "列车轮径",
"type": "integer"
} }
} }
}, },
@ -6077,30 +6051,18 @@
} }
} }
}, },
"model.TrainWheelDiameter": { "model.TrainWheel": {
"type": "object", "type": "object",
"properties": { "properties": {
"axial_position": {
"description": "速度传感器安装轴位,本端车前进方向的第几轴",
"type": "integer"
},
"diameter": {
"description": "速度传感器安装处车轮的出厂直径(mm)",
"type": "integer"
},
"id": { "id": {
"type": "integer" "type": "integer"
}, },
"install_direction": {
"description": "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧",
"type": "string"
},
"max_diameter": { "max_diameter": {
"description": "速度传感器安装处车轮的最大直径(mm)", "description": "车轮的最大直径(mm)",
"type": "integer" "type": "integer"
}, },
"min_diameter": { "min_diameter": {
"description": "速度传感器安装处车轮的最小直径(mm)", "description": "车轮的最小直径(mm)",
"type": "integer" "type": "integer"
}, },
"name": { "name": {
@ -6112,6 +6074,13 @@
"request_proto.PsdOperationReq": { "request_proto.PsdOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {
"asdCodes": {
"description": "无法关闭/无法开启故障涉及的滑动门的编号",
"type": "array",
"items": {
"type": "integer"
}
},
"deviceId": { "deviceId": {
"description": "设备id", "description": "设备id",
"type": "string" "type": "string"
@ -6146,18 +6115,36 @@
6, 6,
7, 7,
8, 8,
9 9,
10,
11,
12,
13,
14,
15,
16,
17,
18
], ],
"x-enum-comments": { "x-enum-comments": {
"Psd_AsdCannotClose": "滑动门无法关闭",
"Psd_AsdCannotOpen": "滑动门无法开门",
"Psd_CancelAsdCannotClose": "取消滑动门无法关闭",
"Psd_CancelAsdCannotOpen": "取消滑动门无法开门",
"Psd_CancelForce": "取消强制",
"Psd_CancelGm": "取消关门", "Psd_CancelGm": "取消关门",
"Psd_CancelKm4": "取消四编组开门", "Psd_CancelKm4": "取消四编组开门",
"Psd_CancelKm8": "取消八编组开门", "Psd_CancelKm8": "取消八编组开门",
"Psd_CancelQDTC": "取消启动探测",
"Psd_CancelTZTC": "取消停止探测",
"Psd_ForceGm": "强制关门", "Psd_ForceGm": "强制关门",
"Psd_ForceKm4": "强制四编组开门", "Psd_ForceKm4": "强制四编组开门",
"Psd_ForceKm8": "强制八编组开门", "Psd_ForceKm8": "强制八编组开门",
"Psd_Gm": "关门", "Psd_Gm": "关门",
"Psd_Km4": "四编组开门", "Psd_Km4": "四编组开门",
"Psd_Km8": "八编组开门" "Psd_Km8": "八编组开门",
"Psd_QDTC": "启动探测",
"Psd_TZTC": "停止探测"
}, },
"x-enum-varnames": [ "x-enum-varnames": [
"Psd_Undefined", "Psd_Undefined",
@ -6169,7 +6156,16 @@
"Psd_CancelGm", "Psd_CancelGm",
"Psd_ForceKm4", "Psd_ForceKm4",
"Psd_ForceKm8", "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": { "request_proto.Section_Operation": {

View File

@ -29,6 +29,9 @@ definitions:
up: up:
description: 列车方向,true-上行false-下行 description: 列车方向,true-上行false-下行
type: boolean type: boolean
wheelDiameter:
description: 列车轮径
type: integer
type: object type: object
dto.AddTrainRspDto: dto.AddTrainRspDto:
properties: properties:
@ -579,24 +582,15 @@ definitions:
description: 总长度 description: 总长度
type: integer type: integer
type: object type: object
model.TrainWheelDiameter: model.TrainWheel:
properties: properties:
axial_position:
description: 速度传感器安装轴位,本端车前进方向的第几轴
type: integer
diameter:
description: 速度传感器安装处车轮的出厂直径(mm)
type: integer
id: id:
type: integer type: integer
install_direction:
description: "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧"
type: string
max_diameter: max_diameter:
description: 速度传感器安装处车轮的最大直径(mm) description: 车轮的最大直径(mm)
type: integer type: integer
min_diameter: min_diameter:
description: 速度传感器安装处车轮的最小直径(mm) description: 车轮的最小直径(mm)
type: integer type: integer
name: name:
description: 名称 description: 名称
@ -614,17 +608,35 @@ definitions:
- 7 - 7
- 8 - 8
- 9 - 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
type: integer type: integer
x-enum-comments: x-enum-comments:
Psd_AsdCannotClose: 滑动门无法关闭
Psd_AsdCannotOpen: 滑动门无法开门
Psd_CancelAsdCannotClose: 取消滑动门无法关闭
Psd_CancelAsdCannotOpen: 取消滑动门无法开门
Psd_CancelForce: 取消强制
Psd_CancelGm: 取消关门 Psd_CancelGm: 取消关门
Psd_CancelKm4: 取消四编组开门 Psd_CancelKm4: 取消四编组开门
Psd_CancelKm8: 取消八编组开门 Psd_CancelKm8: 取消八编组开门
Psd_CancelQDTC: 取消启动探测
Psd_CancelTZTC: 取消停止探测
Psd_ForceGm: 强制关门 Psd_ForceGm: 强制关门
Psd_ForceKm4: 强制四编组开门 Psd_ForceKm4: 强制四编组开门
Psd_ForceKm8: 强制八编组开门 Psd_ForceKm8: 强制八编组开门
Psd_Gm: 关门 Psd_Gm: 关门
Psd_Km4: 四编组开门 Psd_Km4: 四编组开门
Psd_Km8: 八编组开门 Psd_Km8: 八编组开门
Psd_QDTC: 启动探测
Psd_TZTC: 停止探测
x-enum-varnames: x-enum-varnames:
- Psd_Undefined - Psd_Undefined
- Psd_Km4 - Psd_Km4
@ -636,8 +648,22 @@ definitions:
- Psd_ForceKm4 - Psd_ForceKm4
- Psd_ForceKm8 - 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.PsdOperationReq: request_proto.PsdOperationReq:
properties: properties:
asdCodes:
description: 无法关闭/无法开启故障涉及的滑动门的编号
items:
type: integer
type: array
deviceId: deviceId:
description: 设备id description: 设备id
type: string type: string
@ -3757,18 +3783,9 @@ paths:
- application/json - application/json
description: 创建列车轮径数据 description: 创建列车轮径数据
parameters: parameters:
- in: query
name: axial_position
type: integer
- in: query
name: diameter
type: integer
- in: query - in: query
name: id name: id
type: integer type: integer
- in: query
name: install_direction
type: string
- in: query - in: query
name: max_diameter name: max_diameter
type: integer type: integer
@ -3849,7 +3866,7 @@ paths:
"200": "200":
description: OK description: OK
schema: schema:
$ref: '#/definitions/model.TrainWheelDiameter' $ref: '#/definitions/model.TrainWheel'
"401": "401":
description: Unauthorized description: Unauthorized
schema: schema:
@ -3877,18 +3894,9 @@ paths:
name: id name: id
required: true required: true
type: integer type: integer
- in: query
name: axial_position
type: integer
- in: query
name: diameter
type: integer
- in: query - in: query
name: id name: id
type: integer type: integer
- in: query
name: install_direction
type: string
- in: query - in: query
name: max_diameter name: max_diameter
type: integer type: integer