Closed zhouzhengde closed 3 years ago
BUG描述
复现步骤 导入 api-docs.json, 就会出错。
期望结果 希望全部成功
实际结果 只有部分接口导入进来
截图
环境
是否是自建服务器?如果为自建,请提供操作系统版本 采用Docker部署,宿主机是:Centos7.6.1810 Docker版本是:19.03.5 Docker Compose: 1.27.4
如果是前端错误,请提供浏览器版本
其它可能帮助我们排查问题的环境信息
附加信息 api-docs.json
{ "swagger": "2.0", "info": { "description": "@description: 本接口文档旨在说明对外接口服务", "version": "v1.0.0", "title": "API文档", "contact": { "name": "Bond(China)", "email": "zzdjavajob@163.com" }, "license": {} }, "host": "localhost:8090", "basePath": "/uecad", "tags": [ { "name": "diagram-editor-controller", "description": "Palette接口层" }, { "name": "equipment-account-controller", "description": "Equipment Account Controller" }, { "name": "site-publish-controller", "description": "站点发布接口层" }, { "name": "symbols-mgt-controller", "description": "元件接口层" }, { "name": "diagram-data-controller", "description": "图形数据文件接口层" }, { "name": "diagram-mgt-controller", "description": "图形信息管理接口层" }, { "name": "diagram-svg-controller", "description": "Diagram Svg Controller" }, { "name": "diagram-image-controller", "description": "Diagram Image Controller" } ], "paths": { "/api/diagram/data/export/download{?file}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "download", "operationId": "downloadUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "file", "in": "query", "description": "file", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/请求成功!" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/export/generate": { "post": { "tags": [ "diagram-data-controller" ], "summary": "export", "operationId": "exportUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/ExportDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/get/{metaId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "getData", "operationId": "getDataUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "path", "description": "metaId", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/debug/lock{?metaId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "runtimeDataLockForDebug", "operationId": "runtimeDataLockForDebugUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "metaId", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/debug/modify": { "post": { "tags": [ "diagram-data-controller" ], "summary": "modifyRuntimeDataForDebug", "operationId": "modifyRuntimeDataForDebugUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/RuntimeDataDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/debug/renewLock{?metaId,lockId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "runtimeDataRenewLockForDebug", "operationId": "runtimeDataRenewLockForDebugUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "metaId", "required": true, "type": "string" }, { "name": "lockId", "in": "query", "description": "lockId", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/debug/unlock{?metaId,lockId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "runtimeDataUnLockForDebug", "operationId": "runtimeDataUnLockForDebugUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "metaId", "required": true, "type": "string" }, { "name": "lockId", "in": "query", "description": "lockId", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/lock{?metaId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "获取修改运行数据的锁", "description": "实现采用每个数据数据文件有一个对应的修改锁文件,每一次只允许一个用户操作其锁文件,每个锁是有超时设置的,其超时时间取决应用配置:--uecad.lockTimeout,默认:60秒。", "operationId": "runtimeDataLockUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "图形元信息ID", "required": false, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/modify": { "post": { "tags": [ "diagram-data-controller" ], "summary": "modifyRuntimeData", "operationId": "modifyRuntimeDataUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/RuntimeDataDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/renewLock{?metaId,lockId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "runtimeDataRenewLock", "operationId": "runtimeDataRenewLockUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "metaId", "required": true, "type": "string" }, { "name": "lockId", "in": "query", "description": "lockId", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/runtime/unlock{?metaId,lockId}": { "get": { "tags": [ "diagram-data-controller" ], "summary": "runtimeDataUnLock", "operationId": "runtimeDataUnLockUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "metaId", "required": true, "type": "string" }, { "name": "lockId", "in": "query", "description": "lockId", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/save": { "post": { "tags": [ "diagram-data-controller" ], "summary": "saveData", "operationId": "saveDataUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/DiagramDataDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/data/unzip": { "post": { "tags": [ "diagram-data-controller" ], "summary": "openFile", "operationId": "openFileUsingPOST", "consumes": [ "multipart/form-data" ], "produces": [ "*/*" ], "parameters": [ { "name": "file", "in": "formData", "description": "file", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/data/api/call/{id}": { "get": { "tags": [ "diagram-mgt-controller" ], "summary": "callDataApi", "operationId": "callDataApiUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "id", "in": "path", "description": "id", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/data/api/mock": { "get": { "tags": [ "diagram-mgt-controller" ], "summary": "mockDataApi", "operationId": "mockDataApiUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/data/api/test": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "testDataApi", "operationId": "testDataApiUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "dataApiDTO", "description": "dataApiDTO", "required": true, "schema": { "$ref": "#/definitions/DataApiDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/meta/add": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "addDiagram", "operationId": "addDiagramUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/meta/addByCopy": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "addDiagramByCopy", "operationId": "addDiagramByCopyUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/meta/delete": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "deleteDiagram", "operationId": "deleteDiagramUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/meta/get/{id}": { "get": { "tags": [ "diagram-mgt-controller" ], "summary": "getById", "operationId": "getByIdUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "id", "in": "path", "description": "id", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/meta/list": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "listDiagram", "operationId": "listDiagramUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "searchDTO", "description": "searchDTO", "required": false, "schema": { "$ref": "#/definitions/SearchDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/meta/update": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "updateDiagram", "operationId": "updateDiagramUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/tag/list": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "getTagList", "operationId": "getTagListUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/upload/thumbnail/{id}": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "uploadThumbnailImage", "operationId": "uploadThumbnailImageUsingPOST", "consumes": [ "multipart/form-data" ], "produces": [ "*/*" ], "parameters": [ { "name": "id", "in": "path", "description": "id", "required": true, "type": "string" }, { "name": "file", "in": "formData", "description": "file", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagram/mgt/version/list": { "post": { "tags": [ "diagram-mgt-controller" ], "summary": "getVersionList", "operationId": "getVersionListUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "param", "description": "param", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramEditor/paletteConfig/all": { "get": { "tags": [ "diagram-editor-controller" ], "summary": "getPaletteConfigAll", "operationId": "getPaletteConfigAllUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramEditor/paletteConfig/{group}": { "get": { "tags": [ "diagram-editor-controller" ], "summary": "getPaletteConfig", "operationId": "getPaletteConfigUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "group", "in": "path", "description": "group", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramImage/mark": { "post": { "tags": [ "diagram-image-controller" ], "summary": "markImage", "operationId": "markImageUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "request", "description": "request", "required": false, "schema": { "$ref": "#/definitions/StandardMultipartHttpServletRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/请求成功!" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramImage/recognition": { "post": { "tags": [ "diagram-image-controller" ], "summary": "recognitionImage", "operationId": "recognitionImageUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "request", "description": "request", "required": false, "schema": { "$ref": "#/definitions/StandardMultipartHttpServletRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramSvg/cim/export{?metaId,version}": { "get": { "tags": [ "diagram-svg-controller" ], "summary": "download", "operationId": "downloadUsingGET_1", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "metaId", "in": "query", "description": "metaId", "required": true, "type": "string" }, { "name": "version", "in": "query", "description": "version", "required": false, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/请求成功!" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramSvg/cim/tpl/mapping.json": { "get": { "tags": [ "diagram-svg-controller" ], "summary": "getMappingTemplate", "operationId": "getMappingTemplateUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/请求成功!" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/diagramSvg/cim/upload": { "post": { "tags": [ "diagram-svg-controller" ], "summary": "upload", "operationId": "uploadUsingPOST", "consumes": [ "multipart/form-data" ], "produces": [ "*/*" ], "parameters": [ { "name": "mappingFile", "in": "formData", "description": "mappingFile", "required": true, "type": "string" }, { "name": "cimSvgFile", "in": "formData", "description": "cimSvgFile", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/equipment/generate/diagram": { "post": { "tags": [ "equipment-account-controller" ], "summary": "generateByEquipment", "operationId": "generateByEquipmentUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/EquipmentImportDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/equipment/get/type/mapping": { "get": { "tags": [ "equipment-account-controller" ], "summary": "getTypeDesc", "operationId": "getTypeDescUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/site/publish": { "post": { "tags": [ "site-publish-controller" ], "summary": "publish", "operationId": "publishUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "param", "description": "param", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/site/unpublish": { "post": { "tags": [ "site-publish-controller" ], "summary": "unpulish", "operationId": "unpulishUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "param", "description": "param", "required": true, "schema": { "$ref": "#/definitions/DiagramMetaDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/export/download{?id}": { "get": { "tags": [ "symbols-mgt-controller" ], "summary": "exportSymbol", "operationId": "exportSymbolUsingGET", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "id", "in": "query", "description": "id", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/请求成功!" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/export/generate": { "post": { "tags": [ "symbols-mgt-controller" ], "summary": "exportSymbol", "operationId": "exportSymbolUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "param", "description": "param", "required": true, "schema": { "$ref": "#/definitions/SymbolDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/groups": { "post": { "tags": [ "symbols-mgt-controller" ], "summary": "getGroups", "operationId": "getGroupsUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/publish": { "post": { "tags": [ "symbols-mgt-controller" ], "summary": "publish", "operationId": "publishUsingPOST_1", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/SymbolDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/save": { "post": { "tags": [ "symbols-mgt-controller" ], "summary": "save", "operationId": "saveUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "entity", "description": "entity", "required": true, "schema": { "$ref": "#/definitions/SymbolDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/search": { "post": { "tags": [ "symbols-mgt-controller" ], "summary": "getSymbols", "operationId": "getSymbolsUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "in": "body", "name": "searchDTO", "description": "searchDTO", "required": true, "schema": { "$ref": "#/definitions/SearchDTO" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } }, "/api/symbols/mgt/svg/converter": { "post": { "tags": [ "symbols-mgt-controller" ], "summary": "svg2ht", "operationId": "svg2htUsingPOST", "consumes": [ "multipart/form-data" ], "produces": [ "*/*" ], "parameters": [ { "name": "file", "in": "formData", "description": "file", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Result" } }, "401": { "description": "401-没有授权!", "schema": { "$ref": "#/definitions/没有授权!" } }, "500": { "description": "500-系统错误,请联系系统管理员或开发人员!", "schema": { "$ref": "#/definitions/系统错误,请联系系统管理员或开发人员!" } }, "403": { "description": "403-禁止访问!", "schema": { "$ref": "#/definitions/禁止访问!" } }, "404": { "description": "404-请求的地址不存在!", "schema": { "$ref": "#/definitions/请求的地址不存在!" } }, "405": { "description": "405-HTTP方法不被允许,请确认调用的方法是否正确!", "schema": { "$ref": "#/definitions/HTTP方法不被允许,请确认调用的方法是否正确!" } } } } } }, "definitions": { "DiagramMetaDTO": { "type": "object", "properties": { "copyId": { "type": "string", "description": "复制的图形ID" }, "copyVersion": { "type": "string", "description": "复制的图形的版本" }, "dataApi": { "$ref": "#/definitions/DataApiDTO" }, "dataApiType": { "type": "string", "description": "接口接口方式, restful | websocket" }, "diagramDataFile": { "type": "string", "description": "图形数据文件" }, "diagramDataJsURL": { "type": "string", "description": "图形数据JS文件URL" }, "diagramDataJsonURL": { "type": "string", "description": "图形数据JSON文件URL" }, "hashId": { "type": "string", "description": "图形HashID" }, "id": { "type": "string", "description": "图形元信息ID" }, "isPublish": { "type": "boolean", "description": "图形是否已经发布" }, "metaDataJsURL": { "type": "string", "description": "图形元数据Js文件URL" }, "metaDataJsonURL": { "type": "string", "description": "图形元数据JSON文件URL" }, "name": { "type": "string", "description": "图形名称" }, "publishTime": { "type": "string", "format": "date-time", "description": "发布时间" }, "siteUrl": { "type": "string", "description": "图形发布站点URL" }, "tagList": { "type": "array", "description": "标签", "items": { "type": "string" } }, "thumbnailUrl": { "type": "string", "description": "缩略图URL" }, "updateTime": { "type": "string", "format": "date-time", "description": "最后一次更新时间" }, "versionDTO": { "description": "当前版本", "$ref": "#/definitions/VersionDTO" } } }, "Serializable": { "type": "object" }, "EquipmentImportDTO": { "type": "object", "properties": { "copyId": { "type": "string", "description": "复制的图形ID" }, "copyVersion": { "type": "string", "description": "复制的图形的版本" }, "dataApi": { "$ref": "#/definitions/DataApiDTO" }, "dataApiType": { "type": "string", "description": "接口接口方式, restful | websocket" }, "diagramDataFile": { "type": "string", "description": "图形数据文件" }, "diagramDataJsURL": { "type": "string", "description": "图形数据JS文件URL" }, "diagramDataJsonURL": { "type": "string", "description": "图形数据JSON文件URL" }, "equipments": { "type": "array", "description": "设备列表信息", "items": { "$ref": "#/definitions/EquipmentDTO" } }, "hashId": { "type": "string", "description": "图形HashID" }, "id": { "type": "string", "description": "图形元信息ID" }, "isPublish": { "type": "boolean", "description": "图形是否已经发布" }, "metaDataJsURL": { "type": "string", "description": "图形元数据Js文件URL" }, "metaDataJsonURL": { "type": "string", "description": "图形元数据JSON文件URL" }, "name": { "type": "string", "description": "图形名称" }, "publishTime": { "type": "string", "format": "date-time", "description": "发布时间" }, "siteUrl": { "type": "string", "description": "图形发布站点URL" }, "symbolTypes": { "type": "array", "description": "元件与设备类型映射集", "items": { "$ref": "#/definitions/SymbolTypeRelDTO" } }, "tagList": { "type": "array", "description": "标签", "items": { "type": "string" } }, "thumbnailUrl": { "type": "string", "description": "缩略图URL" }, "updateTime": { "type": "string", "format": "date-time", "description": "最后一次更新时间" }, "versionDTO": { "description": "当前版本", "$ref": "#/definitions/VersionDTO" } } }, "DiagramNode": { "type": "object", "properties": { "a": { "type": "object", "additionalProperties": { "type": "string" } }, "c": { "type": "string" }, "i": { "type": "integer", "format": "int32" }, "objectEntity": { "$ref": "#/definitions/ObjectEntity" }, "p": { "$ref": "#/definitions/SymbolDesc" }, "s": { "type": "object", "additionalProperties": { "type": "string" } } } }, "RuntimeDataDTO": { "type": "object", "properties": { "dataJson": { "type": "string", "description": "图形数据内容, 备注:HT序列化出来的内容" }, "lockId": { "type": "string" }, "metaId": { "type": "string", "description": "图形元信息ID" }, "unlock": { "type": "boolean" } } }, "Position": { "type": "object", "properties": { "x": { "type": "number", "format": "double" }, "y": { "type": "number", "format": "double" } } }, "Segments": { "type": "object", "properties": { "__a": { "type": "array", "items": { "type": "integer", "format": "int32" } } } }, "SymbolDTO": { "type": "object", "properties": { "group": { "type": "string" }, "labelList": { "type": "array", "items": { "type": "string" } }, "relativePath": { "type": "string" }, "sort": { "type": "integer", "format": "int32" }, "symbolJson": { "type": "string" }, "symbolName": { "type": "string" } } }, "Scale": { "type": "object", "properties": { "x": { "type": "number", "format": "double" }, "y": { "type": "number", "format": "double" } } }, "SymbolTypeRelDTO": { "type": "object", "properties": { "symbol": { "type": "string" }, "type": { "type": "string" } } }, "Point": { "type": "object", "properties": { "x": { "type": "number", "format": "double" }, "y": { "type": "number", "format": "double" } } }, "SymbolDesc": { "type": "object", "properties": { "height": { "type": "number", "format": "double" }, "image": { "type": "string" }, "layer": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "points": { "$ref": "#/definitions/Points" }, "position": { "$ref": "#/definitions/Position" }, "rotation": { "type": "number", "format": "double" }, "scale": { "$ref": "#/definitions/Scale" }, "scaleX": { "type": "number", "format": "double" }, "scaleY": { "type": "number", "format": "double" }, "segments": { "$ref": "#/definitions/Segments" }, "source": { "$ref": "#/definitions/LinkNode" }, "tag": { "type": "string" }, "target": { "$ref": "#/definitions/LinkNode" }, "width": { "type": "number", "format": "double" } } }, "Result": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "detailError": { "type": "string" }, "msg": { "type": "string" }, "result": { "$ref": "#/definitions/Serializable" }, "trace": { "type": "string" } } }, "EquipmentDTO": { "type": "object", "properties": { "code": { "type": "string" }, "diagramNode": { "$ref": "#/definitions/DiagramNode" }, "name": { "type": "string" }, "parentCode": { "type": "string" }, "type": { "type": "string" } } }, "Points": { "type": "object", "properties": { "__a": { "type": "array", "items": { "$ref": "#/definitions/Point" } } } }, "ObjectEntity": { "type": "object", "properties": { "confidence": { "type": "number", "format": "double" }, "label": { "type": "string" }, "region": { "type": "array", "items": { "type": "number", "format": "double" } } } }, "ExportDTO": { "type": "object", "properties": { "baseUrl": { "type": "string" }, "dataJson": { "type": "string", "description": "图形数据内容, 备注:HT序列化出来的内容" }, "metaId": { "type": "string", "description": "图形元信息ID" }, "name": { "type": "string", "description": "图形名称" }, "relativePath": { "type": "string", "description": "图形部署相对位置" } } }, "DataApiDTO": { "type": "object", "properties": { "appId": { "type": "string", "description": "接口的appId" }, "contentType": { "type": "string", "description": "接口的内容类型" }, "enableSecure": { "type": "boolean", "description": "接口的是否启用安全" }, "method": { "type": "string", "description": "接口的方法" }, "refreshFreq": { "type": "integer", "format": "int32", "description": "接口的拉取刷新频率,单位(秒)" }, "secureKey": { "type": "string", "description": "接口的安全key" }, "url": { "type": "string", "description": "接口的URL" } } }, "DiagramDataDTO": { "type": "object", "properties": { "dataJson": { "type": "string", "description": "图形数据内容, 备注:HT序列化出来的内容" }, "metaId": { "type": "string", "description": "图形元信息ID" } } }, "SearchDTO": { "type": "object", "properties": { "empty": { "type": "boolean" }, "qt": { "type": "string", "example": "name=*,isPublish=*,symbolName=*,group=*", "description": "查询条件" } } }, "LinkNode": { "type": "object", "properties": { "__i": { "type": "integer", "format": "int32" } } }, "VersionDTO": { "type": "object", "properties": { "author": { "type": "string" }, "date": { "type": "string", "format": "date-time" }, "description": { "type": "string" }, "name": { "type": "string" } } } } }
测试最新代码已修复导入bug,谢谢。
BUG描述
复现步骤 导入 api-docs.json, 就会出错。
期望结果 希望全部成功
实际结果 只有部分接口导入进来
截图
环境
是否是自建服务器?如果为自建,请提供操作系统版本 采用Docker部署,宿主机是:Centos7.6.1810 Docker版本是:19.03.5 Docker Compose: 1.27.4
如果是前端错误,请提供浏览器版本
其它可能帮助我们排查问题的环境信息
附加信息 api-docs.json