...
|
...
|
@@ -43,10 +43,38 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart/rename": {
|
|
|
"v1/chart/components/search": {
|
|
|
"post": {
|
|
|
"summary": "更新图表排序",
|
|
|
"operationId": "renameChartSort",
|
|
|
"summary": "搜索图表组件",
|
|
|
"operationId": "searchChartComponents",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartComponentSearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartComponentSearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"chart"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart/move": {
|
|
|
"post": {
|
|
|
"summary": "移动图表",
|
|
|
"operationId": "updateChartSort",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
...
|
...
|
@@ -71,15 +99,15 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart/search": {
|
|
|
"v1/chart/rename": {
|
|
|
"post": {
|
|
|
"summary": "搜索图表",
|
|
|
"operationId": "searchChart",
|
|
|
"summary": "重命名图表",
|
|
|
"operationId": "renameChartSort",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartSearchResponse"
|
|
|
"$ref": "#/definitions/ChartRenameResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -89,7 +117,7 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartSearchRequest"
|
|
|
"$ref": "#/definitions/ChartRenameRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
...
|
...
|
@@ -99,15 +127,15 @@ |
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/chart/sort": {
|
|
|
"v1/chart/search": {
|
|
|
"post": {
|
|
|
"summary": "更新图表排序",
|
|
|
"operationId": "updateChartSort",
|
|
|
"summary": "搜索图表",
|
|
|
"operationId": "searchChart",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartUpdateSortResponse"
|
|
|
"$ref": "#/definitions/ChartSearchResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -117,7 +145,7 @@ |
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/ChartUpdateSortRequest"
|
|
|
"$ref": "#/definitions/ChartSearchRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
...
|
...
|
@@ -216,9 +244,173 @@ |
|
|
"chart"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/table/data": {
|
|
|
"post": {
|
|
|
"summary": "源数据表-数据",
|
|
|
"operationId": "searchTableData",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SearchTableDataResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SearchTableDataRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"table"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/table/field-optional-values": {
|
|
|
"post": {
|
|
|
"summary": "源数据表-字段可选值",
|
|
|
"operationId": "searchTableFieldOptionalValues",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SearchTableByModuleResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SearchTableByModuleRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"table"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/table/search-by-module": {
|
|
|
"post": {
|
|
|
"summary": "源数据表-按模块搜索",
|
|
|
"operationId": "searchTableByModule",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SearchTableByModuleResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "body",
|
|
|
"in": "body",
|
|
|
"required": true,
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/SearchTableByModuleRequest"
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"table"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"v1/table/{tableId}": {
|
|
|
"get": {
|
|
|
"summary": "源数据表-详情",
|
|
|
"operationId": "getTableDetail",
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
"description": "A successful response.",
|
|
|
"schema": {
|
|
|
"$ref": "#/definitions/GetTableDetailResponse"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "tableId",
|
|
|
"in": "path",
|
|
|
"required": true,
|
|
|
"type": "string"
|
|
|
}
|
|
|
],
|
|
|
"requestBody": {},
|
|
|
"tags": [
|
|
|
"table"
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"definitions": {
|
|
|
"ChartComponentItem": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"name": {
|
|
|
"type": "string",
|
|
|
"description": " 名称"
|
|
|
},
|
|
|
"code": {
|
|
|
"type": "string",
|
|
|
"description": " 编码"
|
|
|
},
|
|
|
"cover": {
|
|
|
"type": "string",
|
|
|
"description": " 封面"
|
|
|
},
|
|
|
"desc": {
|
|
|
"type": "string",
|
|
|
"description": " 描述"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartComponentItem"
|
|
|
},
|
|
|
"ChartComponentSearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"name": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartComponentSearchRequest",
|
|
|
"required": [
|
|
|
"name"
|
|
|
]
|
|
|
},
|
|
|
"ChartComponentSearchResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"list": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/ChartComponentItem"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartComponentSearchResponse",
|
|
|
"required": [
|
|
|
"list",
|
|
|
"total"
|
|
|
]
|
|
|
},
|
|
|
"ChartDeleteRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
...
|
...
|
@@ -355,20 +547,19 @@ |
|
|
"ChartSearchRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"page": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"includeTypes": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": "包含的类型: 类型 report:报表 group:分组 chart:图表(未指定返回所有)"
|
|
|
},
|
|
|
"size": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"dataStyle": {
|
|
|
"type": "string",
|
|
|
"description": " 数据样式 tree:树形 flat:平铺"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartSearchRequest",
|
|
|
"required": [
|
|
|
"page",
|
|
|
"size"
|
|
|
]
|
|
|
"title": "ChartSearchRequest"
|
|
|
},
|
|
|
"ChartSearchResponse": {
|
|
|
"type": "object",
|
...
|
...
|
@@ -414,25 +605,172 @@ |
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"sort": {
|
|
|
"pid": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int64"
|
|
|
},
|
|
|
"pid": {
|
|
|
"index": {
|
|
|
"type": "integer",
|
|
|
"format": "int32"
|
|
|
"format": "int32",
|
|
|
"description": " 元素下标"
|
|
|
}
|
|
|
},
|
|
|
"title": "ChartUpdateSortRequest",
|
|
|
"required": [
|
|
|
"id",
|
|
|
"sort",
|
|
|
"pid"
|
|
|
"pid",
|
|
|
"index"
|
|
|
]
|
|
|
},
|
|
|
"ChartUpdateSortResponse": {
|
|
|
"type": "object",
|
|
|
"title": "ChartUpdateSortResponse"
|
|
|
},
|
|
|
"Condition": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"field": {
|
|
|
"type": "string",
|
|
|
"description": " 条件字段"
|
|
|
},
|
|
|
"sqlName": {
|
|
|
"type": "string",
|
|
|
"description": " 字段SqlName"
|
|
|
},
|
|
|
"like": {
|
|
|
"type": "string",
|
|
|
"description": " 模糊匹配"
|
|
|
},
|
|
|
"in": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
"description": " 匹配多个值"
|
|
|
},
|
|
|
"order": {
|
|
|
"type": "string",
|
|
|
"description": " 排序 ASC DESC 默认ASC"
|
|
|
}
|
|
|
},
|
|
|
"title": "Condition",
|
|
|
"required": [
|
|
|
"field",
|
|
|
"sqlName",
|
|
|
"order"
|
|
|
]
|
|
|
},
|
|
|
"GetTableDetailRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"tableId": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 表ID"
|
|
|
}
|
|
|
},
|
|
|
"title": "GetTableDetailRequest",
|
|
|
"required": [
|
|
|
"tableId"
|
|
|
]
|
|
|
},
|
|
|
"GetTableDetailResponse": {
|
|
|
"type": "object",
|
|
|
"title": "GetTableDetailResponse"
|
|
|
},
|
|
|
"SearchTableByModuleRequest": {
|
|
|
"type": "object",
|
|
|
"title": "SearchTableByModuleRequest"
|
|
|
},
|
|
|
"SearchTableByModuleResponse": {
|
|
|
"type": "object",
|
|
|
"title": "SearchTableByModuleResponse"
|
|
|
},
|
|
|
"SearchTableDataRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"objectId": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 对象ID"
|
|
|
},
|
|
|
"pageNumber": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 分页数"
|
|
|
},
|
|
|
"pageSize": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 页码"
|
|
|
},
|
|
|
"conditions": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Condition"
|
|
|
},
|
|
|
"description": " 条件"
|
|
|
}
|
|
|
},
|
|
|
"title": "SearchTableDataRequest",
|
|
|
"required": [
|
|
|
"objectId"
|
|
|
]
|
|
|
},
|
|
|
"SearchTableDataResponse": {
|
|
|
"type": "object",
|
|
|
"title": "SearchTableDataResponse"
|
|
|
},
|
|
|
"SearchTableFieldOptionalValuesRequest": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"objectId": {
|
|
|
"type": "integer",
|
|
|
"format": "int32",
|
|
|
"description": " 对象ID"
|
|
|
},
|
|
|
"field": {
|
|
|
"type": "string",
|
|
|
"description": " 当前选择的字段"
|
|
|
},
|
|
|
"sqlName": {
|
|
|
"type": "string",
|
|
|
"description": " 字段SqlName"
|
|
|
},
|
|
|
"conditions": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"$ref": "#/definitions/Condition"
|
|
|
},
|
|
|
"description": " 条件"
|
|
|
}
|
|
|
},
|
|
|
"title": "SearchTableFieldOptionalValuesRequest",
|
|
|
"required": [
|
|
|
"objectId",
|
|
|
"field",
|
|
|
"sqlName"
|
|
|
]
|
|
|
},
|
|
|
"SearchTableFieldOptionalValuesResponse": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"values": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
"type": "string"
|
|
|
}
|
|
|
},
|
|
|
"total": {
|
|
|
"type": "integer",
|
|
|
"format": "int64"
|
|
|
}
|
|
|
},
|
|
|
"title": "SearchTableFieldOptionalValuesResponse",
|
|
|
"required": [
|
|
|
"values",
|
|
|
"total"
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"securityDefinitions": {
|
...
|
...
|
|