2023-07-14 16:28:47 +08:00
|
|
|
|
{
|
|
|
|
|
"swagger": "2.0",
|
|
|
|
|
"info": {
|
|
|
|
|
"description": "CBTC测试服务.",
|
|
|
|
|
"title": "CBTC测试系统API",
|
|
|
|
|
"contact": {},
|
|
|
|
|
"version": "1.0"
|
|
|
|
|
},
|
2023-08-01 14:47:04 +08:00
|
|
|
|
"host": "localhost:9091",
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"basePath": "/",
|
|
|
|
|
"paths": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/auth/path": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "创建接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"权限Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "创建接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "method",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "path",
|
|
|
|
|
"in": "query"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
2023-08-03 17:01:28 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/auth/path/list": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "查询接口路径列表",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"权限Api"
|
2023-08-28 15:24:17 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "查询接口路径列表",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"$ref": "#/definitions/model.AuthAPIPath"
|
2023-08-28 15:24:17 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/auth/path/paging": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "分页查询接口路径信息",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"权限Api"
|
2023-08-28 15:24:17 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "分页查询接口路径信息",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/auth/path/{id}": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "查询接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"权限Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "查询接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "接口路径ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"$ref": "#/definitions/model.AuthAPIPath"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "修改接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"权限Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "修改接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "接口路径ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "method",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "path",
|
|
|
|
|
"in": "query"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
2023-08-03 17:01:28 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "删除接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"权限Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "删除接口路径",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "接口路径ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
2023-08-03 17:01:28 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"/api/v1/auth/role": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "创建角色",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"权限Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "创建角色",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "addPaths",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "delPaths",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/auth/role/list": {
|
|
|
|
|
"get": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "查询角色列表",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"权限Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "查询角色列表",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"$ref": "#/definitions/dto.AuthRoleRspDto"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
2023-08-03 17:01:28 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/auth/role/paging": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "分页查询角色信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"权限Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "分页查询角色信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"/api/v1/auth/role/{id}": {
|
|
|
|
|
"get": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "查询角色详情",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"权限Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"summary": "查询角色详情",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"type": "integer",
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "角色ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"$ref": "#/definitions/dto.AuthRoleDetailRspDto"
|
2023-08-28 15:24:17 +08:00
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-31 11:07:22 +08:00
|
|
|
|
},
|
|
|
|
|
"put": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "修改角色信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"权限Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"summary": "修改角色信息",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"parameters": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
{
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "角色信息ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "addPaths",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "delPaths",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-28 11:15:44 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-07-28 11:15:44 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-31 11:07:22 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "删除角色信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"权限Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"summary": "删除角色信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "角色ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "boolean"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"/api/v1/auth/userLinkRole": {
|
|
|
|
|
"post": {
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "用户关联角色",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"权限Api"
|
2023-07-28 11:15:44 +08:00
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"summary": "用户关联角色",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"parameters": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
{
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "addRids",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-28 11:15:44 +08:00
|
|
|
|
{
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "delRids",
|
|
|
|
|
"in": "query"
|
2023-07-28 11:15:44 +08:00
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "integer",
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"name": "uid",
|
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "boolean"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"/api/v1/category": {
|
|
|
|
|
"post": {
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "创建厂家数据",
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-14 18:09:07 +08:00
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"summary": "创建厂家信息",
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"parameters": [
|
2023-08-31 11:07:22 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "config",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-14 18:09:07 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "id",
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-07-14 18:09:07 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "OK"
|
2023-07-14 18:09:07 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-31 11:07:22 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/category/list": {
|
|
|
|
|
"get": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"description": "可以通过厂家名称过滤,查询厂家信息列表",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"summary": "查询厂家信息列表",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
{
|
2023-08-31 11:07:22 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/category/paging": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "可以通过厂家名称过滤,分页查询厂家信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"厂家信息Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "分页查询厂家信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/category/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "查询厂家信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"厂家信息Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "查询厂家信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "厂家ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/model.Category"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "修改厂家信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"厂家信息Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "修改厂家信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "厂家信息ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "config",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "删除厂家信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "删除厂家信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "厂家信息ID",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "id",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "OK"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/drafting": {
|
|
|
|
|
"post": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "创建草稿数据",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "创建草稿",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "category",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
{
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "proto",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
2023-10-16 09:05:37 +08:00
|
|
|
|
2,
|
2023-11-22 17:05:38 +08:00
|
|
|
|
3,
|
|
|
|
|
4
|
2023-08-30 18:05:11 +08:00
|
|
|
|
],
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"PictureType_StationLayout",
|
|
|
|
|
"PictureType_Psl",
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"PictureType_RelayCabinetLayout",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"PictureType_IBP",
|
|
|
|
|
"PictureType_TrainData"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
],
|
|
|
|
|
"name": "type",
|
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"/api/v1/drafting/list": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"get": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"description": "可以通过草稿类型过滤,列表查询草稿",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"summary": "列表查询草稿",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
2023-08-28 15:24:17 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"name": "type",
|
|
|
|
|
"in": "query"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"/api/v1/drafting/paging": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "可以通过草稿名称过滤,分页查询草稿",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"草稿Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "分页查询草稿",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/drafting/{id}": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "查询草稿详情",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"草稿Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "查询草稿详情",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "草稿ID",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"$ref": "#/definitions/model.Drafting"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "修改草稿信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"草稿Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "修改草稿信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "草稿ID",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "category",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"in": "query"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"in": "query"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "proto",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
2023-10-16 09:05:37 +08:00
|
|
|
|
2,
|
2023-11-22 17:05:38 +08:00
|
|
|
|
3,
|
|
|
|
|
4
|
2023-08-30 18:05:11 +08:00
|
|
|
|
],
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"PictureType_StationLayout",
|
|
|
|
|
"PictureType_Psl",
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"PictureType_RelayCabinetLayout",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"PictureType_IBP",
|
|
|
|
|
"PictureType_TrainData"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
],
|
|
|
|
|
"name": "type",
|
|
|
|
|
"in": "query"
|
2023-08-04 11:54:19 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"description": "OK"
|
2023-08-04 11:54:19 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "删除草稿数据",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "删除草稿数据",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "草稿ID",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK"
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/drafting/{id}/saveAs": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "草稿另存为",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"草稿Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "草稿另存为",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "源草稿id",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
{
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "category",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"in": "query"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "proto",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
2023-08-30 18:05:11 +08:00
|
|
|
|
1,
|
2023-10-16 09:05:37 +08:00
|
|
|
|
2,
|
2023-11-22 17:05:38 +08:00
|
|
|
|
3,
|
|
|
|
|
4
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"PictureType_StationLayout",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"PictureType_Psl",
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"PictureType_RelayCabinetLayout",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"PictureType_IBP",
|
|
|
|
|
"PictureType_TrainData"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
|
|
|
|
"name": "type",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"in": "query"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "OK"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/project": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "创建项目数据",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目信息Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "创建项目信息",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"parameters": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "code",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/project/list": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"get": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "可以通过项目名称过滤,查询项目信息列表",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"项目信息Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "查询项目信息列表",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
2023-08-03 17:01:28 +08:00
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"$ref": "#/definitions/model.Project"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/project/paging": {
|
|
|
|
|
"get": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "可以通过项目名称过滤,分页查询项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "分页查询项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "code",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
|
|
|
|
}
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/project/{id}": {
|
|
|
|
|
"get": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "查询项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "查询项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "项目ID",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/model.Project"
|
|
|
|
|
}
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
"put": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "修改项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "修改项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "项目信息ID",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"name": "code",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "删除项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"summary": "删除项目信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "项目信息ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/projectLink": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "保存项目的所有关联信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目关联信息Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "保存项目的所有关联信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "mids",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "pid",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/projectLink/info/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "查询项目的所有关联信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目关联信息Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "查询项目的所有关联信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "项目ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ProjectLinkRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"/api/v1/publishedGi/:id/history": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"description": "查询发布历史版本信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"发布的图形数据Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"summary": "查询发布历史版本信息",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"description": "id",
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"name": "PublishFallBackDto",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PublishHistoryDto"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"/api/v1/publishedGi/fallbackVersion": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "发布地图回退到历史版本",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "发布地图回退到历史版本",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "mapId",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "versionId",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"/api/v1/publishedGi/list": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"description": "可以通过名称过滤",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"发布的图形数据Api"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"summary": "列表查询发布的图形数据",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
2023-11-22 17:05:38 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "category",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-30 09:28:21 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"name": "type",
|
|
|
|
|
"in": "query"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/model.Published"
|
|
|
|
|
}
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"/api/v1/publishedGi/name": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "可以通过名称过滤",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"summary": "根据Code查询发布地图数据",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
2023-11-22 17:05:38 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "detail",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-30 09:28:21 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PublishedDto"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"/api/v1/publishedGi/paging": {
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "可以通过名称过滤",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"summary": "分页查询发布的图形数据",
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-11-22 17:05:38 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"description": "是否只要上架数据",
|
|
|
|
|
"name": "release",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2023-10-18 13:53:17 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
2023-10-18 13:53:17 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"/api/v1/publishedGi/publish": {
|
|
|
|
|
"post": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"summary": "从草稿发布数据",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
2023-11-22 17:05:38 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "草稿数据的id",
|
|
|
|
|
"name": "draftId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"description": "强制覆盖",
|
|
|
|
|
"name": "force",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-30 09:28:21 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"description": "发布后的名称",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "note",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/publishedGi/release": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "上下架发布数据",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "上下架发布数据",
|
|
|
|
|
"parameters": [
|
2023-08-30 09:28:21 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "release",
|
|
|
|
|
"in": "query"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"description": "OK"
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"/api/v1/publishedGi/rename": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"description": "修改发布数据名称",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"summary": "修改发布数据名称",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"name": "id",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"type": "boolean",
|
|
|
|
|
"name": "release",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK"
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/publishedGi/saveAsDrafting/{id}": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "从发布数据拉取信息到草稿",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "从发布数据拉取信息到草稿",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "id",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"description": "厂商",
|
|
|
|
|
"name": "category",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"description": "草稿名称",
|
|
|
|
|
"name": "draftName",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"in": "query"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "OK"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"/api/v1/publishedGi/{id}": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过名称过滤",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"发布的图形数据Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"summary": "id查询发布的图形数据",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "id",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PublishedDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 09:28:21 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "可以通过名称过滤",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"发布的图形数据Api"
|
|
|
|
|
],
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"summary": "id删除发布的图形数据",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "id",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"description": "OK"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-24 16:37:27 +08:00
|
|
|
|
"/api/v1/runconfig": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "创建项目运行环境配置数据",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "创建项目运行环境配置信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "config",
|
2023-10-31 18:08:17 +08:00
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2023-10-24 16:37:27 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
2023-10-31 18:08:17 +08:00
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/runconfig/description": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
2023-10-24 16:37:27 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
2023-10-31 18:08:17 +08:00
|
|
|
|
"description": "获取项目运行环境信息结构说明",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "获取项目运行环境信息结构说明",
|
2023-10-24 16:37:27 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/runconfig/list": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "无参数,查询项目运行环境配置列表",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "查询项目运行环境配置信息列表",
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ProjectRunConfigDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/runconfig/paging": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "可以通过项目名称过滤,分页查询项目运行环境配置信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "分页查询项目运行环境配置信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/runconfig/{id}": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "查询项目运行环境信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "查询项目运行环境信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "项目运行环境ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ProjectRunConfigDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "修改项目运行环境信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "修改项目运行环境信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "项目运行环境信息ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "删除项目运行环境信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"项目运行环境配置Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "删除项目运行环境信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "项目运行环境信息ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"/api/v1/simulation/:id/getMapKilometerRange": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "获取仿真地图的公里标范围",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "获取仿真地图的公里标范围",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-24 10:22:28 +08:00
|
|
|
|
"/api/v1/simulation/axleSection/operation": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试-计轴区段操作",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试-计轴区段操作",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-操作计轴区段",
|
|
|
|
|
"name": "AxleSectionOperationReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.AxleSectionOperationReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"/api/v1/simulation/balise/position/modify": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "应答器移位",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "应答器移位",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "应答器移位",
|
|
|
|
|
"name": "BaliseMoveReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.BaliseMoveReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/balise/position/reset": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "应答器复位",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "应答器复位",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "应答器复位",
|
|
|
|
|
"name": "BaliseReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.BaliseReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/balise/reset": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "重置应答器状态",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "重置应答器状态",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-01-11 10:24:56 +08:00
|
|
|
|
"type": "string",
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"description": "重置应答器状态",
|
2024-01-11 10:24:56 +08:00
|
|
|
|
"name": "simulationId",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2024-01-10 14:06:01 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/balise/telegram/modify": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "修改应答器报文",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "修改应答器报文",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "修改应答器报文",
|
|
|
|
|
"name": "BaliseModifyTelegramReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.BaliseModifyTelegramReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/balise/telegram/reset": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "重置应答器报文",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "重置应答器报文",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "重置应答器报文",
|
|
|
|
|
"name": "BaliseReqDto",
|
|
|
|
|
"in": "body",
|
2024-02-06 09:30:58 +08:00
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.BaliseReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/balise/telegram/send": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "应答器报文停止发送",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "应答器报文重新开始发送",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "应答器报文重新开始发送",
|
|
|
|
|
"name": "BaliseReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.BaliseReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/balise/telegram/stop": {
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "应答器报文停止发送",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "应答器报文停止发送",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "应答器报文停止发送",
|
|
|
|
|
"name": "BaliseReqDto",
|
|
|
|
|
"in": "body",
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.BaliseReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/simulation/check/data": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "地图数据校验",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试仿真地图数据校验",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-地图数据",
|
|
|
|
|
"name": "RemoveTrainDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.CheckMapDataReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.CheckMapDataRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"/api/v1/simulation/createByProject": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "创建ATS测试仿真通过项目ID",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "创建ATS测试仿真",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "创建仿真请求",
|
|
|
|
|
"name": "SimulationCreateReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.SimulationCreateReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.SimulationCreateRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/destroy/{id}": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试仿真-添加列车",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS仿真销毁",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"/api/v1/simulation/esbBtn/operation": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试-ESB按钮操作",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试-ESB按钮操作",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-ESB按钮操作",
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"name": "EsbButtonOperationReqDto",
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"$ref": "#/definitions/dto.EsbButtonOperationReqDto"
|
2023-10-18 13:53:17 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"/api/v1/simulation/ibp/btn/operation": {
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试-IBP按钮操作",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试-IBP按钮操作",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-IBP按钮操作",
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"name": "IBPButtonOperationReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.IBPButtonOperationReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/ibp/key/operation": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试-IBP钥匙操作",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试-IBP钥匙操作",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-IBP钥匙操作",
|
|
|
|
|
"name": "KeyOperationReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.KeyOperationReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"/api/v1/simulation/list": {
|
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "获取ATS测试系统所有仿真实例的基本信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "获取ATS测试系统所有仿真实例的基本信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/dto.SimulationInfoRspDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/psd/operation": {
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"description": "屏蔽门操作",
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"summary": "屏蔽门操作",
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"description": "屏蔽门操作",
|
|
|
|
|
"name": "PsdOperationReq",
|
2023-10-18 13:53:17 +08:00
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"$ref": "#/definitions/request_proto.PsdOperationReq"
|
2023-10-18 13:53:17 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"/api/v1/simulation/psl/operation": {
|
|
|
|
|
"post": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"description": "PSL操作",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"summary": "PSL操作",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
2023-11-02 15:50:03 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "PSL操作",
|
|
|
|
|
"name": "PslOperationReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.PslOperationReqDto"
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"type": "string"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"/api/v1/simulation/relay/operation": {
|
|
|
|
|
"post": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"description": "ATS测试-操作继电器",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"summary": "获取ATS测试-操作继电器",
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"description": "ATS测试仿真-操作继电器",
|
|
|
|
|
"name": "RelayOperationReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.RelayOperationReqDto"
|
|
|
|
|
}
|
2023-08-30 18:05:11 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"type": "string"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"/api/v1/simulation/signal/operation": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试-信号机操作",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试-信号机操作",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-操作信号机",
|
|
|
|
|
"name": "SignalOperationReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"$ref": "#/definitions/request_proto.SignalOperationReq"
|
2023-10-16 09:05:37 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/simulation/switch/operation": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"description": "ATS测试-操作道岔",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "获取ATS测试-操作道岔",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-操作道岔",
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"name": "TurnoutOperationReq",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"$ref": "#/definitions/request_proto.PointsOperationReq"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/train/add": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试仿真-添加列车",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试仿真-添加列车",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-添加列车",
|
|
|
|
|
"name": "AddTrainReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
2024-01-17 15:53:14 +08:00
|
|
|
|
"$ref": "#/definitions/dto.AddTrainReqDtoNew"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.AddTrainRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"/api/v1/simulation/train/config": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "地图数据校验",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "列车动力学参数配置修改",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "动力学参数配置",
|
|
|
|
|
"name": "RemoveTrainDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/simulation/train/remove": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试仿真-移除列车",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试仿真-移除列车",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-移除列车",
|
|
|
|
|
"name": "RemoveTrainDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.RemoveTrainDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-02-04 18:22:52 +08:00
|
|
|
|
"/api/v1/simulation/train/remove/all": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试仿真-移除列车",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试仿真-移除列车",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-移除所有列车",
|
|
|
|
|
"name": "RemoveTrainDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.RemoveAllTrainRspDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-13 15:57:32 +08:00
|
|
|
|
"/api/v1/simulation/train/update": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "ATS测试仿真-修改列车基础信息",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"ATS测试仿真Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "ATS测试仿真-修改列车基础信息",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "ATS测试仿真-修改列车基础信息",
|
|
|
|
|
"name": "UpdateTrainReqDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.UpdateTrainReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.AddTrainRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/trainManage": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "创建列车数据",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "创建列车",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
2023-11-17 18:15:27 +08:00
|
|
|
|
{
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"description": "创建的列车信息",
|
|
|
|
|
"name": "trainInfoDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.TrainInfoDto"
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/trainManage/list": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "可以通过列车名称过滤,查询列车信息列表",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "查询列车信息列表",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2024-01-10 14:06:01 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "pid",
|
|
|
|
|
"in": "query"
|
2023-08-28 15:24:17 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"$ref": "#/definitions/dto.TrainInfoDto"
|
2023-08-28 15:24:17 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/trainManage/paging": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "可以通过列车名称过滤,分页查询列车信息列表",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "分页查询列车信息列表",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/trainManage/{id}": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "查询列车详情",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "查询列车详情",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "列车ID",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"$ref": "#/definitions/dto.TrainInfoDto"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"put": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "修改列车信息",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "修改列车信息",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "列车ID",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "carriage_length",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-11-17 18:15:27 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "total_length",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "train_model",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"description": "MinDiameter int32 `json:\"min_diameter\" form:\"min_diameter\"`\nMaxDiameter int32 `json:\"max_diameter\" form:\"max_diameter\"`",
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"name": "train_sets",
|
|
|
|
|
"in": "query"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "删除列车数据",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "删除列车数据",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "列车ID",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/user/current": {
|
|
|
|
|
"get": {
|
|
|
|
|
"description": "获取当前登录用户信息",
|
2023-08-28 09:56:34 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"用户Api"
|
2023-08-28 09:56:34 +08:00
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "获取当前登录用户信息",
|
2023-08-28 09:56:34 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "JWT Token",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"required": true
|
2023-08-28 09:56:34 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "OK",
|
2023-08-28 09:56:34 +08:00
|
|
|
|
"schema": {
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"$ref": "#/definitions/dto.UserRspDto"
|
2023-08-28 09:56:34 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/user/login": {
|
|
|
|
|
"post": {
|
|
|
|
|
"description": "用户登录",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"用户Api"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "用户登录",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "登录信息",
|
|
|
|
|
"name": "loginInfo",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.LoginDto"
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"$ref": "#/definitions/dto.TokenRespDto"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/user/paging": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"get": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "可以通过用户名称过滤,分页查询用户",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"用户Api"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "分页查询用户",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"description": "手机号",
|
|
|
|
|
"name": "mobile",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "用户名",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-28 15:24:17 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"/api/v1/user/register": {
|
|
|
|
|
"post": {
|
|
|
|
|
"description": "用户注册",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"用户Api"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
],
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"summary": "用户注册",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"description": "用户注册信息",
|
|
|
|
|
"name": "loginInfo",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.RegisterUser"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-14 16:28:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"definitions": {
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"data_proto.KilometerSystem": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"coordinateSystem": {
|
|
|
|
|
"description": "坐标系",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"direction": {
|
|
|
|
|
"description": "左右行",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/data_proto.KilometerSystem_Direction"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"kilometer": {
|
|
|
|
|
"description": "公里标mm",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"data_proto.KilometerSystem_Direction": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1
|
|
|
|
|
],
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"KilometerSystem_LEFT",
|
|
|
|
|
"KilometerSystem_RIGHT"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"data_proto.PictureType": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
|
|
|
|
2,
|
|
|
|
|
3,
|
|
|
|
|
4
|
|
|
|
|
],
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"PictureType_StationLayout",
|
|
|
|
|
"PictureType_Psl",
|
|
|
|
|
"PictureType_RelayCabinetLayout",
|
|
|
|
|
"PictureType_IBP",
|
|
|
|
|
"PictureType_TrainData"
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-17 15:53:14 +08:00
|
|
|
|
"dto.AddTrainReqDtoNew": {
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2024-02-04 18:22:52 +08:00
|
|
|
|
"TrainSpeed": {
|
|
|
|
|
"description": "列车时速",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"configTrain": {
|
2024-01-17 15:53:14 +08:00
|
|
|
|
"description": "列车数据配置",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainData"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"devicePort": {
|
|
|
|
|
"description": "道岔端口",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"headLinkId": {
|
|
|
|
|
"description": "车头所在link的索引",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"headLinkOffset": {
|
|
|
|
|
"description": "车头所在link内的偏移量,单位为mm",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"headOffset": {
|
|
|
|
|
"description": "车头所在link内的偏移量,单位为mm",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "物理区段、道岔ID",
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "场景ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"trainEndsA": {
|
|
|
|
|
"description": "车辆A端",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainEnds"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"trainEndsB": {
|
|
|
|
|
"description": "车辆B端",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainEnds"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-02-04 18:22:52 +08:00
|
|
|
|
"trainId": {
|
|
|
|
|
"description": "列车id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"trainLength": {
|
|
|
|
|
"description": "列车长度",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"up": {
|
|
|
|
|
"description": "列车方向,true-上行,false-下行",
|
|
|
|
|
"type": "boolean"
|
2023-11-13 15:41:03 +08:00
|
|
|
|
},
|
|
|
|
|
"wheelDiameter": {
|
|
|
|
|
"type": "integer"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.AddTrainRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "场景ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"trainId": {
|
|
|
|
|
"description": "新添加的列车的索引",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"dto.AuthRoleDetailRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"paths": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/model.AuthAPIPath"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.AuthRoleRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-24 10:22:28 +08:00
|
|
|
|
"dto.AxleSectionOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"mapId",
|
|
|
|
|
"simulationId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-24 10:22:28 +08:00
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"operation": {
|
2023-10-31 16:46:14 +08:00
|
|
|
|
"$ref": "#/definitions/request_proto.Section_Operation"
|
2023-10-24 10:22:28 +08:00
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
2023-11-02 15:50:03 +08:00
|
|
|
|
},
|
|
|
|
|
"trainIn": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"trainOut": {
|
|
|
|
|
"type": "boolean"
|
2023-10-24 10:22:28 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"dto.BaliseModifyTelegramReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"baliseId": {
|
|
|
|
|
"description": "应答器ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"fixedTelegram": {
|
|
|
|
|
"description": "固定报文(16进制字符串)",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"fixedUserTelegram": {
|
|
|
|
|
"description": "固定用户报文(16进制字符串)",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真ID",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"variableTelegram": {
|
|
|
|
|
"description": "可变报文",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"variableUserTelegram": {
|
|
|
|
|
"description": "可变用户报文",
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"type": "string"
|
2024-01-10 14:06:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.BaliseMoveReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"baliseId": {
|
|
|
|
|
"description": "应答器ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"km": {
|
|
|
|
|
"description": "公里标",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"$ref": "#/definitions/data_proto.KilometerSystem"
|
2024-01-10 14:06:01 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真ID",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.BaliseReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"baliseId": {
|
|
|
|
|
"description": "应答器ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真ID",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"dto.CheckMapDataReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"data"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"data": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.CheckMapDataRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"errors": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"success": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"dto.ConfigTrainData": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"curveResistanceParamR1": {
|
|
|
|
|
"description": "曲线阻力参数R1",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"curveResistanceParamR2": {
|
|
|
|
|
"description": "曲线阻力参数R2",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"curveResistanceParamR3": {
|
|
|
|
|
"description": "曲线阻力参数R3",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"curveResistanceParamR4": {
|
|
|
|
|
"description": "曲线阻力参数R4",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"davisParamA": {
|
|
|
|
|
"description": "Mass int32 `json:\"mass\" form:\"mass\"` // 列车的质量(100=1ton)",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"davisParamB": {
|
|
|
|
|
"description": "基本阻力参数B",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"davisParamC": {
|
|
|
|
|
"description": "基本阻力参数C",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
2024-01-29 13:24:53 +08:00
|
|
|
|
"idlingA": {
|
|
|
|
|
"description": "空转加速度(m/s) 默认0",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"idlingD": {
|
|
|
|
|
"description": "空转持续时间s 默认0",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"idlingR": {
|
|
|
|
|
"description": "空转冲击率(m/s) 默认0",
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"jump": {
|
|
|
|
|
"description": "是否跳跃",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"revolvingMassParam": {
|
|
|
|
|
"description": "旋转质量参数",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"slide": {
|
2024-01-29 13:24:53 +08:00
|
|
|
|
"description": "前溜/后溜(m/s)(正数前溜,负数后溜),默认值:0",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"slipA": {
|
|
|
|
|
"description": "打滑加速度(m/s) 默认0",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"slipD": {
|
|
|
|
|
"description": "打滑持续时间ms 默认0",
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-01-29 13:24:53 +08:00
|
|
|
|
"slipR": {
|
|
|
|
|
"description": "打滑冲击率(m/s) 默认0",
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"stopSign": {
|
|
|
|
|
"description": "过标/欠标(mm)(正数过标,负数欠标)",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-17 13:09:45 +08:00
|
|
|
|
"dto.ConfigTrainEnds": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"accCheckSpeedDiff": {
|
|
|
|
|
"description": "加速计速度差",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"accCheckTime": {
|
|
|
|
|
"description": "加速计储蓄时间",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"accEnable": {
|
|
|
|
|
"description": "加速计是否有效",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"radarCheckSpeedDiff": {
|
2024-01-17 13:09:45 +08:00
|
|
|
|
"description": "雷达测速数值",
|
|
|
|
|
"type": "number"
|
|
|
|
|
},
|
|
|
|
|
"radarCheckTime": {
|
|
|
|
|
"description": "雷达检测时间(秒)",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"radarEnable": {
|
|
|
|
|
"description": "雷达是否有效",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
2024-01-17 15:53:14 +08:00
|
|
|
|
"speedSensorEnableA": {
|
2024-01-17 13:09:45 +08:00
|
|
|
|
"description": "2端速度传感器是否有效",
|
2024-01-17 15:53:14 +08:00
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"speedSensorEnableB": {
|
|
|
|
|
"description": "2端速度传感器是否有效",
|
|
|
|
|
"type": "boolean"
|
2024-01-17 13:09:45 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"dto.ConfigTrainReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"configData": {
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainData"
|
|
|
|
|
},
|
|
|
|
|
"length": {
|
|
|
|
|
"description": "列车的长度(cm)",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"trainEndsA": {
|
2024-01-17 17:05:08 +08:00
|
|
|
|
"description": "车辆A端",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainEnds"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"trainEndsB": {
|
2024-01-17 17:05:08 +08:00
|
|
|
|
"description": "车辆B端",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainEnds"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"trainId": {
|
2024-01-16 17:53:54 +08:00
|
|
|
|
"description": "列车Id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-01-17 15:53:14 +08:00
|
|
|
|
"wheelDiameter": {
|
|
|
|
|
"description": "轮径(mm)",
|
|
|
|
|
"type": "integer"
|
2024-01-16 17:53:54 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"dto.ErrorDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"detail": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"title": {
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"dto.EsbButtonOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"mapId",
|
|
|
|
|
"simulationId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"down": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-20 13:50:22 +08:00
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.IBPButtonOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"buttonId",
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"mapId",
|
|
|
|
|
"simulationId",
|
|
|
|
|
"stationId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"buttonId": {
|
|
|
|
|
"type": "integer"
|
2023-10-20 13:50:22 +08:00
|
|
|
|
},
|
|
|
|
|
"down": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"stationId": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-20 13:50:22 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.KeyOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"mapId",
|
|
|
|
|
"simulationId",
|
|
|
|
|
"stationId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"gear": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"keyId": {
|
|
|
|
|
"type": "integer"
|
2023-10-20 13:50:22 +08:00
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"stationId": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-20 13:50:22 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"dto.LoginDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"account",
|
|
|
|
|
"password"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"account": {
|
|
|
|
|
"description": "账号",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"example": "17791995809"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"description": "加密密码",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"example": "95129dbaace576e46f41a629e6f35d5c"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.OrderItem": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"asc": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"column": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.PageDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"page",
|
|
|
|
|
"size"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"orders": {
|
|
|
|
|
"description": "排序项",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/dto.OrderItem"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"page": {
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1
|
|
|
|
|
},
|
|
|
|
|
"records": {},
|
|
|
|
|
"size": {
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10
|
|
|
|
|
},
|
|
|
|
|
"total": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"dto.ProjectLinkRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"mapInfoLinks": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/dto.PublishedGiLinkDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"pid": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-24 16:37:27 +08:00
|
|
|
|
"dto.ProjectRunConfigDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"config": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"createdAt": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"updateAt": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-20 13:50:22 +08:00
|
|
|
|
"dto.PslOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"buttonCode",
|
|
|
|
|
"mapId",
|
|
|
|
|
"simulationId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"buttonCode": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"down": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"gateBoxId": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-20 13:50:22 +08:00
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"dto.PublishHistoryDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"current": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"note": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"publishAt": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"publisher": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"version": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"dto.PublishedDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"category": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"note": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proto": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"publishAt": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"publisher": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"status": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-11-17 18:15:27 +08:00
|
|
|
|
"type": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"userID": {
|
|
|
|
|
"type": "integer"
|
2024-01-10 14:06:01 +08:00
|
|
|
|
},
|
|
|
|
|
"version": {
|
|
|
|
|
"type": "integer"
|
2023-11-17 18:15:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"dto.PublishedGiLinkDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"category": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
2023-10-07 17:51:00 +08:00
|
|
|
|
},
|
|
|
|
|
"type": {
|
|
|
|
|
"type": "integer"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"dto.RegisterUser": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"mobile": {
|
|
|
|
|
"description": "手机号",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "名字",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"description": "密码",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"register_time": {
|
|
|
|
|
"description": "注册时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"dto.RelayOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"mapId",
|
|
|
|
|
"simulationId"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-07 17:51:00 +08:00
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"td": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-02-04 18:22:52 +08:00
|
|
|
|
"dto.RemoveAllTrainRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "场景ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"dto.RemoveTrainDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "场景ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"trainId": {
|
|
|
|
|
"description": "新添加的列车的索引",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"dto.SimulationCreateReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图id",
|
|
|
|
|
"type": "integer"
|
2023-08-30 18:05:11 +08:00
|
|
|
|
},
|
|
|
|
|
"projectId": {
|
|
|
|
|
"description": "项目id",
|
|
|
|
|
"type": "integer"
|
2023-10-31 18:08:17 +08:00
|
|
|
|
},
|
|
|
|
|
"runConfigId": {
|
|
|
|
|
"description": "运行环境ID",
|
|
|
|
|
"type": "integer"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.SimulationCreateRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"mapIds": {
|
|
|
|
|
"description": "地图列表",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"projectId": {
|
|
|
|
|
"description": "项目ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-10-31 18:08:17 +08:00
|
|
|
|
"runConfigId": {
|
|
|
|
|
"description": "运行环境ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"dto.SimulationInfoRspDto": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"mapIds": {
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 18:05:11 +08:00
|
|
|
|
"projectId": {
|
|
|
|
|
"type": "integer"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
},
|
2023-10-31 18:08:17 +08:00
|
|
|
|
"runConfigId": {
|
|
|
|
|
"description": "运行环境ID",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"dto.TokenRespDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"expire": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"token": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"dto.TrainInfoDto": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-08-25 17:49:09 +08:00
|
|
|
|
"carriage_length": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-08-25 17:49:09 +08:00
|
|
|
|
"total_length": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer"
|
2023-11-22 17:05:38 +08:00
|
|
|
|
},
|
2024-01-18 10:48:04 +08:00
|
|
|
|
"trainConfigData": {
|
|
|
|
|
"$ref": "#/definitions/dto.ConfigTrainData"
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"train_model": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"train_sets": {
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"description": "MinDiameter int32 `json:\"min_diameter\" form:\"min_diameter\"`\nMaxDiameter int32 `json:\"max_diameter\" form:\"max_diameter\"`",
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"type": "string"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-13 15:57:32 +08:00
|
|
|
|
"dto.UpdateTrainReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "列车Id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"trainLength": {
|
|
|
|
|
"description": "列车长度",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"wheelDiameter": {
|
|
|
|
|
"description": "列车轮径",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-09-01 17:26:04 +08:00
|
|
|
|
"dto.UserRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"mobile": {
|
|
|
|
|
"description": "手机号",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "名字",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"paths": {
|
|
|
|
|
"description": "权限路径",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/model.AuthAPIPath"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"register_time": {
|
|
|
|
|
"description": "注册时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"roles": {
|
|
|
|
|
"description": "用户角色",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/dto.AuthRoleRspDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-30 09:28:21 +08:00
|
|
|
|
"model.AuthAPIPath": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "主键",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"method": {
|
|
|
|
|
"description": "请求方式",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "功能名称",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"path": {
|
|
|
|
|
"description": "请求路径",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"model.Category": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"description": "编码",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"config": {
|
|
|
|
|
"description": "厂家配置",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"created_at": {
|
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "厂家名",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"update_at": {
|
|
|
|
|
"description": "修改时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"model.Drafting": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"category": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "厂家编码",
|
|
|
|
|
"type": "string"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"created_at": {
|
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"creator_id": {
|
|
|
|
|
"description": "创建人id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "草稿图名称",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"proto": {
|
|
|
|
|
"description": "绘图数据",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 17:49:09 +08:00
|
|
|
|
"type": {
|
|
|
|
|
"description": "数据类型",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"update_at": {
|
|
|
|
|
"description": "修改时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"model.Project": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"description": "项目编码",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"created_at": {
|
|
|
|
|
"description": "创建时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "主键",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "名称",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"update_at": {
|
|
|
|
|
"description": "更新时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"model.Published": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"category": {
|
|
|
|
|
"description": "厂家信息",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "string"
|
2023-08-04 11:54:19 +08:00
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"code": {
|
|
|
|
|
"description": "发布名称",
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"data_id": {
|
|
|
|
|
"description": "版本Id",
|
|
|
|
|
"type": "integer"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
2023-11-22 17:05:38 +08:00
|
|
|
|
"id": {
|
|
|
|
|
"description": "id",
|
|
|
|
|
"type": "integer"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"status": {
|
|
|
|
|
"description": "显示状态",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-10-07 17:51:00 +08:00
|
|
|
|
"type": {
|
|
|
|
|
"description": "数据类型",
|
|
|
|
|
"type": "integer"
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-10-16 09:05:37 +08:00
|
|
|
|
},
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"request_proto.PointsOperationReq": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"deviceId": {
|
|
|
|
|
"description": "设备id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "图id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"operation": {
|
|
|
|
|
"description": "道岔操作",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Points_Operation"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"param": {
|
|
|
|
|
"description": "道岔参数,当operation为SetParams时有效",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.PointsParam"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request_proto.PointsParam": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"forcePosition": {
|
|
|
|
|
"description": "道岔强制",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Points_Force"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Points_Force": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
|
|
|
|
2,
|
|
|
|
|
3
|
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
|
|
|
|
"Points_FP_DW": "定位",
|
|
|
|
|
"Points_FP_FW": "反位",
|
|
|
|
|
"Points_FP_NONE": "无强制",
|
|
|
|
|
"Points_FP_SB": "失表"
|
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"Points_FP_NONE",
|
|
|
|
|
"Points_FP_DW",
|
|
|
|
|
"Points_FP_FW",
|
|
|
|
|
"Points_FP_SB"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Points_Operation": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1
|
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
|
|
|
|
"Points_SetParams": "设置参数",
|
|
|
|
|
"Points_Undefined": "未定义"
|
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"Points_Undefined",
|
|
|
|
|
"Points_SetParams"
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"request_proto.PsdOperationReq": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"deviceId": {
|
|
|
|
|
"description": "设备id",
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "图id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"operation": {
|
|
|
|
|
"description": "操作",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Psd_Operation"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"param": {
|
|
|
|
|
"description": "屏蔽门参数,当operation为SetParams时有效",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.PsdParam"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"request_proto.PsdParam": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"asdCodes": {
|
|
|
|
|
"description": "涉及的滑动门的编号",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"fault": {
|
|
|
|
|
"description": "屏蔽门故障设置",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Psd_Fault"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"force": {
|
|
|
|
|
"description": "屏蔽门强制设置",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Psd_Force"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Psd_Fault": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1
|
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
|
|
|
|
"Psd_FA_NONE": "无故障",
|
|
|
|
|
"Psd_FA_Obstacle": "设置故障物"
|
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"Psd_FA_NONE",
|
|
|
|
|
"Psd_FA_Obstacle"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Psd_Force": {
|
2023-11-02 15:50:03 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
2024-01-26 17:57:35 +08:00
|
|
|
|
2
|
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
|
|
|
|
"Psd_F_ASD_GM": "滑动门强制关门",
|
|
|
|
|
"Psd_F_ASD_KM": "滑动门强制开门",
|
|
|
|
|
"Psd_F_NONE": "无强制"
|
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"Psd_F_NONE",
|
|
|
|
|
"Psd_F_ASD_KM",
|
|
|
|
|
"Psd_F_ASD_GM"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Psd_Operation": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1
|
2023-11-02 15:50:03 +08:00
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"Psd_SetParams": "设置参数"
|
2023-11-02 15:50:03 +08:00
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"Psd_Undefined",
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"Psd_SetParams"
|
2023-11-02 15:50:03 +08:00
|
|
|
|
]
|
|
|
|
|
},
|
2023-10-31 16:46:14 +08:00
|
|
|
|
"request_proto.Section_Operation": {
|
2023-10-24 10:22:28 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
2023-10-31 16:46:14 +08:00
|
|
|
|
1,
|
2024-01-26 17:57:35 +08:00
|
|
|
|
4
|
2023-10-24 10:22:28 +08:00
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
2023-10-31 16:46:14 +08:00
|
|
|
|
"Section_SetFaultOcc": "设置故障占用",
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"Section_SetParams": "设置参数",
|
|
|
|
|
"Section_Undefined": "未定义"
|
2023-10-24 10:22:28 +08:00
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
2024-01-26 17:57:35 +08:00
|
|
|
|
"Section_Undefined",
|
|
|
|
|
"Section_SetParams",
|
|
|
|
|
"Section_SetFaultOcc"
|
2023-10-24 10:22:28 +08:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"request_proto.SignalOperationReq": {
|
2023-10-16 11:13:05 +08:00
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"deviceId": {
|
|
|
|
|
"description": "设备id",
|
2024-01-10 14:06:01 +08:00
|
|
|
|
"type": "integer"
|
2023-10-16 11:13:05 +08:00
|
|
|
|
},
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "图id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"operation": {
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"description": "信号机操作",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Signal_Operation"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"param": {
|
|
|
|
|
"description": "信号机参数,当operation为SetParams时有效",
|
2023-10-16 11:13:05 +08:00
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"$ref": "#/definitions/request_proto.SignalParam"
|
2023-10-16 11:13:05 +08:00
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"request_proto.SignalParam": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"dsList": {
|
|
|
|
|
"description": "信号机断丝",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"$ref": "#/definitions/request_proto.Signal_DS"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"force": {
|
|
|
|
|
"description": "信号机强制",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "#/definitions/request_proto.Signal_Force"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Signal_DS": {
|
2023-10-16 11:13:05 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
|
|
|
|
2,
|
|
|
|
|
3,
|
2024-01-18 17:33:51 +08:00
|
|
|
|
4
|
2023-10-16 11:13:05 +08:00
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"Signal_DS_A": "蓝灯断丝",
|
|
|
|
|
"Signal_DS_B": "白灯断丝",
|
|
|
|
|
"Signal_DS_H": "红灯断丝",
|
|
|
|
|
"Signal_DS_L": "绿灯断丝",
|
|
|
|
|
"Signal_DS_U": "黄灯断丝"
|
2023-10-16 11:13:05 +08:00
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"Signal_DS_H",
|
|
|
|
|
"Signal_DS_U",
|
|
|
|
|
"Signal_DS_L",
|
|
|
|
|
"Signal_DS_A",
|
|
|
|
|
"Signal_DS_B"
|
2023-10-16 11:13:05 +08:00
|
|
|
|
]
|
|
|
|
|
},
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"request_proto.Signal_Force": {
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1,
|
|
|
|
|
2,
|
|
|
|
|
3,
|
|
|
|
|
4,
|
|
|
|
|
5,
|
|
|
|
|
6,
|
|
|
|
|
7
|
|
|
|
|
],
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"x-enum-comments": {
|
|
|
|
|
"Signal_SF_A": "蓝灯",
|
|
|
|
|
"Signal_SF_B": "白灯",
|
|
|
|
|
"Signal_SF_H": "红灯",
|
|
|
|
|
"Signal_SF_HU": "红黄灯",
|
|
|
|
|
"Signal_SF_L": "绿灯",
|
|
|
|
|
"Signal_SF_M": "灭灯",
|
|
|
|
|
"Signal_SF_NONE": "无强制",
|
|
|
|
|
"Signal_SF_U": "黄灯"
|
|
|
|
|
},
|
|
|
|
|
"x-enum-varnames": [
|
|
|
|
|
"Signal_SF_NONE",
|
|
|
|
|
"Signal_SF_M",
|
|
|
|
|
"Signal_SF_H",
|
|
|
|
|
"Signal_SF_U",
|
|
|
|
|
"Signal_SF_L",
|
|
|
|
|
"Signal_SF_HU",
|
|
|
|
|
"Signal_SF_A",
|
|
|
|
|
"Signal_SF_B"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"request_proto.Signal_Operation": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"enum": [
|
|
|
|
|
0,
|
|
|
|
|
1
|
|
|
|
|
],
|
|
|
|
|
"x-enum-comments": {
|
|
|
|
|
"Signal_SetParams": "设置参数",
|
|
|
|
|
"Signal_Undefined": "未定义"
|
|
|
|
|
},
|
2023-10-16 09:05:37 +08:00
|
|
|
|
"x-enum-varnames": [
|
2024-01-18 17:33:51 +08:00
|
|
|
|
"Signal_Undefined",
|
|
|
|
|
"Signal_SetParams"
|
2023-10-16 09:05:37 +08:00
|
|
|
|
]
|
2023-07-14 16:28:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"securityDefinitions": {
|
|
|
|
|
"JwtAuth": {
|
|
|
|
|
"type": "apiKey",
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
"in": "header"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|