signal 故障 docs

This commit is contained in:
xzb 2023-10-19 15:38:36 +08:00
parent 1d450bc1e1
commit f87d820196
3 changed files with 170 additions and 5 deletions

View File

@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT. // Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs package docs
import "github.com/swaggo/swag" import "github.com/swaggo/swag"
@ -4971,11 +4970,17 @@ const docTemplate = `{
"aspect", "aspect",
"id", "id",
"mapId", "mapId",
"operation",
"simulationId" "simulationId"
], ],
"properties": { "properties": {
"aspect": { "aspect": {
"$ref": "#/definitions/state.Signal_Aspect" "description": "当操作为Operation.Display时有效表示显示的信号",
"allOf": [
{
"$ref": "#/definitions/state.Signal_Aspect"
}
]
}, },
"id": { "id": {
"type": "string" "type": "string"
@ -4983,6 +4988,14 @@ const docTemplate = `{
"mapId": { "mapId": {
"type": "integer" "type": "integer"
}, },
"operation": {
"description": "信号机操作类型",
"allOf": [
{
"$ref": "#/definitions/request_proto.Signal_Operation"
}
]
},
"simulationId": { "simulationId": {
"type": "string" "type": "string"
} }
@ -5364,6 +5377,51 @@ const docTemplate = `{
} }
} }
}, },
"request_proto.Signal_Operation": {
"type": "integer",
"enum": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"x-enum-comments": {
"Signal_Display": "显示操作,如设置绿色、设置红黄色",
"Signal_LightACancelDs": "取消蓝灯断丝故障",
"Signal_LightAFaultDs": "设置蓝灯断丝故障",
"Signal_LightBCancelDs": "取消白灯断丝故障",
"Signal_LightBFaultDs": "设置白灯断丝故障",
"Signal_LightHCancelDs": "取消红灯断丝故障",
"Signal_LightHFaultDs": "设置红灯断丝故障",
"Signal_LightLCancelDs": "取消绿灯断丝故障",
"Signal_LightLFaultDs": "设置绿灯断丝故障",
"Signal_LightUCancelDs": "取消黄灯断丝故障",
"Signal_LightUFaultDs": "设置黄灯断丝故障",
"Signal_Undefined": "未定义"
},
"x-enum-varnames": [
"Signal_Undefined",
"Signal_Display",
"Signal_LightHFaultDs",
"Signal_LightUFaultDs",
"Signal_LightLFaultDs",
"Signal_LightAFaultDs",
"Signal_LightBFaultDs",
"Signal_LightHCancelDs",
"Signal_LightUCancelDs",
"Signal_LightLCancelDs",
"Signal_LightACancelDs",
"Signal_LightBCancelDs"
]
},
"request_proto.TurnoutOperationReq": { "request_proto.TurnoutOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {

View File

@ -4964,11 +4964,17 @@
"aspect", "aspect",
"id", "id",
"mapId", "mapId",
"operation",
"simulationId" "simulationId"
], ],
"properties": { "properties": {
"aspect": { "aspect": {
"$ref": "#/definitions/state.Signal_Aspect" "description": "当操作为Operation.Display时有效表示显示的信号",
"allOf": [
{
"$ref": "#/definitions/state.Signal_Aspect"
}
]
}, },
"id": { "id": {
"type": "string" "type": "string"
@ -4976,6 +4982,14 @@
"mapId": { "mapId": {
"type": "integer" "type": "integer"
}, },
"operation": {
"description": "信号机操作类型",
"allOf": [
{
"$ref": "#/definitions/request_proto.Signal_Operation"
}
]
},
"simulationId": { "simulationId": {
"type": "string" "type": "string"
} }
@ -5357,6 +5371,51 @@
} }
} }
}, },
"request_proto.Signal_Operation": {
"type": "integer",
"enum": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"x-enum-comments": {
"Signal_Display": "显示操作,如设置绿色、设置红黄色",
"Signal_LightACancelDs": "取消蓝灯断丝故障",
"Signal_LightAFaultDs": "设置蓝灯断丝故障",
"Signal_LightBCancelDs": "取消白灯断丝故障",
"Signal_LightBFaultDs": "设置白灯断丝故障",
"Signal_LightHCancelDs": "取消红灯断丝故障",
"Signal_LightHFaultDs": "设置红灯断丝故障",
"Signal_LightLCancelDs": "取消绿灯断丝故障",
"Signal_LightLFaultDs": "设置绿灯断丝故障",
"Signal_LightUCancelDs": "取消黄灯断丝故障",
"Signal_LightUFaultDs": "设置黄灯断丝故障",
"Signal_Undefined": "未定义"
},
"x-enum-varnames": [
"Signal_Undefined",
"Signal_Display",
"Signal_LightHFaultDs",
"Signal_LightUFaultDs",
"Signal_LightLFaultDs",
"Signal_LightAFaultDs",
"Signal_LightBFaultDs",
"Signal_LightHCancelDs",
"Signal_LightUCancelDs",
"Signal_LightLCancelDs",
"Signal_LightACancelDs",
"Signal_LightBCancelDs"
]
},
"request_proto.TurnoutOperationReq": { "request_proto.TurnoutOperationReq": {
"type": "object", "type": "object",
"properties": { "properties": {

View File

@ -223,17 +223,24 @@ definitions:
dto.SignalOperationReqDto: dto.SignalOperationReqDto:
properties: properties:
aspect: aspect:
$ref: '#/definitions/state.Signal_Aspect' allOf:
- $ref: '#/definitions/state.Signal_Aspect'
description: 当操作为Operation.Display时有效表示显示的信号
id: id:
type: string type: string
mapId: mapId:
type: integer type: integer
operation:
allOf:
- $ref: '#/definitions/request_proto.Signal_Operation'
description: 信号机操作类型
simulationId: simulationId:
type: string type: string
required: required:
- aspect - aspect
- id - id
- mapId - mapId
- operation
- simulationId - simulationId
type: object type: object
dto.SimulationCreateReqDto: dto.SimulationCreateReqDto:
@ -503,6 +510,47 @@ definitions:
description: 名称 description: 名称
type: string type: string
type: object type: object
request_proto.Signal_Operation:
enum:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
type: integer
x-enum-comments:
Signal_Display: 显示操作,如设置绿色、设置红黄色
Signal_LightACancelDs: 取消蓝灯断丝故障
Signal_LightAFaultDs: 设置蓝灯断丝故障
Signal_LightBCancelDs: 取消白灯断丝故障
Signal_LightBFaultDs: 设置白灯断丝故障
Signal_LightHCancelDs: 取消红灯断丝故障
Signal_LightHFaultDs: 设置红灯断丝故障
Signal_LightLCancelDs: 取消绿灯断丝故障
Signal_LightLFaultDs: 设置绿灯断丝故障
Signal_LightUCancelDs: 取消黄灯断丝故障
Signal_LightUFaultDs: 设置黄灯断丝故障
Signal_Undefined: 未定义
x-enum-varnames:
- Signal_Undefined
- Signal_Display
- Signal_LightHFaultDs
- Signal_LightUFaultDs
- Signal_LightLFaultDs
- Signal_LightAFaultDs
- Signal_LightBFaultDs
- Signal_LightHCancelDs
- Signal_LightUCancelDs
- Signal_LightLCancelDs
- Signal_LightACancelDs
- Signal_LightBCancelDs
request_proto.Turnout_Operation: request_proto.Turnout_Operation:
enum: enum:
- 0 - 0