Skip to content

数据管理

数据列表,数据信息修改,文件下载,索引文件下载等

GET 获取已发布数据空间信息

GET /admin/tx/service/

获取已发布数据的空间信息,不仅限于数据发布时的投影信息,包围盒等,用于页面元信息展示

请求参数

名称位置类型必选说明
folderIdpathstring新文件ID
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "projectParam": {
      "datum": "User-defined",
      "linearUnit": "meters",
      "wellKnownID": "",
      "latitudeOfOrigin": 0,
      "scaleFactor": 1,
      "projectionType": "tmerc",
      "falseNorthing": 0,
      "centralMeridian": 75,
      "falseEasting": 25500000
    },
    "coordinateInfo": {
      "datum": "User-defined",
      "geographicCoordinateSystem": "tmerc-CS",
      "wellKnownID": "",
      "inverseFlattening": 298.2572221010042,
      "semimajorAxis": 6378137,
      "angularUnit": "",
      "primeMeriadian": "Greenwich (75.0)",
      "spheroid": "GRS 1980 (IUGG, 1980)"
    },
    "dataService": {
      "id": "16e48c86173982e5de75d0d0d50a5223",
      "dataId": "a2b0ab97199537da489a0993f5c821b2",
      "bizType": 3,
      "processProgram": null,
      "publishDataType": "osgb",
      "storeType": "mongo",
      "storePath": null,
      "size": null,
      "fileCount": "1702",
      "indexPath": "a2b0ab97199537da489a0993f5c821b2/tileset.json",
      "serviceStyle": null,
      "viewCount": 0,
      "createBy": null,
      "createTime": "2024-06-26 11:25:10",
      "enableFlag": true,
      "deleteFlag": false,
      "remark": null
    },
    "ellipsoidParam": [
      "12",
      "14",
      "16",
      "13",
      "15",
      "17",
      "0"
    ],
    "rangeMap": {}
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» projectParamobjecttruenone投影信息
»»» datumstringtruenone基准
»»» linearUnitstringtruenonelinearUnit
»»» wellKnownIDstringtruenoneWKID
»»» latitudeOfOriginintegertruenonelatitudeOfOrigin
»»» scaleFactorintegertruenone比例因子
»»» projectionTypestringtruenone投影类型
»»» falseNorthingintegertruenone假北
»»» centralMeridianintegertruenone中央经线
»»» falseEastingintegertruenone假东
»» coordinateInfoobjecttruenone坐标系信息
»»» datumstringtruenone基准
»»» geographicCoordinateSystemstringtruenone地理坐标系
»»» wellKnownIDstringtruenoneWKID
»»» inverseFlatteningnumbertruenone逆扁率
»»» semimajorAxisintegertruenone长半轴
»»» angularUnitstringtruenone角度单位
»»» primeMeriadianstringtruenone本初子午线
»»» spheroidstringtruenone椭球
»» dataServiceobjecttruenone服务信息
»»» idstringtruenonenone
»»» dataIdstringtruenonenone
»»» bizTypeintegertruenonenone
»»» processProgramnulltruenonenone
»»» publishDataTypestringtruenonenone
»»» storeTypestringtruenonenone
»»» storePathnulltruenonenone
»»» sizenulltruenonenone
»»» fileCountstringtruenone数量
»»» indexPathstringtruenonenone
»»» serviceStylenulltruenonenone
»»» viewCountintegertruenonenone
»»» createBynulltruenonenone
»»» createTimestringtruenonenone
»»» enableFlagbooleantruenonenone
»»» deleteFlagbooleantruenonenone
»»» remarknulltruenonenone
»» ellipsoidParam[string]truenone四七参数 数组
»» rangeMapobjecttruenone数据范围
»»» weststringtruenone西
»»» eaststringtruenone
»»» southstringtruenone
»»» northstringtruenone
» okbooleantruenonenone

GET 获取磁盘可用空间

GET /admin/disk/info

获取部署目录所在磁盘的已用容量,单位字节

请求参数

名称位置类型必选说明
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "availableSpace": "41710940160",
    "type": 1
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» availableSpacestringtruenone可用空间 字节
»» typeintegertruenone1 小于90 2 90-95 3 大于95
» okbooleantruenonenone

GET 根据数据id下载文件

GET /admin/tx/folders/getFile

根据新数据ID下载已经上传的文件

请求参数

名称位置类型必选说明
idquerystring新数据ID

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": null,
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» datanulltruenonenone
» okbooleantruenonenone

GET 下载数据索引文件

GET /admin/tx/data/downloadIndex

数据发布成功后,可以根据该接口获取数据索引文件,用于第三方软件加载,例如图新说,lsv等

请求参数

名称位置类型必选说明
folderIdquerystring新文件ID
Authorizationheaderstringnone

返回示例

200 Response

json
{}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

GET 数据列表

GET /admin/tx/folders/resource/list

主要用于公共数据列表,项目内数据列表

请求参数

名称位置类型必选说明
parentIdquerystring文件夹ID
projectIdquerystring项目ID
dataStatusquerystring数据状态 1 未发布 2 发布中 3正常 4异常
startUploadDatequerystring查询开始时间
endUploadDatequerystring查询结束时间
pagequerystring页码
descsquerystringnone
ascsquerystringnone
keywordquerystring查询关键词
bizTypequerystring数据类型
fileTypequerystring数据格式
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "records": [
      {
        "id": "79ee968dc5fb1ffe48896a39120ab465",
        "name": "acrosstiles_xl_3dtiles.zip",
        "parentId": "0",
        "createBy": "admin",
        "createByName": "管理员",
        "createTime": "2025-01-10 10:07:43",
        "updateBy": "admin",
        "updateTime": "2025-01-10 10:08:20",
        "delFlag": "0",
        "tenantId": "1",
        "type": 2,
        "projectId": null,
        "dataId": "970d00a6dd826e726539cc6efbc95dea",
        "txData": {
          "id": "970d00a6dd826e726539cc6efbc95dea",
          "name": "acrosstiles_xl_3dtiles.zip",
          "bizType": 3,
          "fileName": "acrosstiles_xl_3dtiles.zip",
          "fileType": "3dtiles",
          "fileSize": "87928945",
          "fileMd5": "6a9c93da51fcbe3886689f5e072e1e93",
          "status": 20,
          "thumbnail": null,
          "uploadUuid": "970d00a6dd826e726539cc6efbc95dea",
          "uploadStartTime": "2025-01-10 10:07:38",
          "uploadFinishTime": "2025-01-10 10:07:44",
          "processStartTime": null,
          "processFinishTime": null,
          "storagePath": "dataCenter/uploads/970d00a6dd826e726539cc6efbc95dea/data.zip",
          "sourcePath": null,
          "remark": null,
          "dataGroupId": null,
          "createBy": "admin",
          "createTime": "2025-01-10 10:07:37",
          "updateBy": "admin",
          "updateTime": "2025-01-10 10:07:44",
          "delFlag": "0",
          "tenantId": "1",
          "errorReason": null,
          "isPublish": 1,
          "metadataInfo": null,
          "folderId": null,
          "projectId": null
        },
        "bizType": 3,
        "fileType": "3dtiles",
        "uploadStartTime": "2025-01-10 10:07:38",
        "parentName": null,
        "fileSize": "87928945",
        "projectName": null,
        "recycleFlag": "0",
        "dataStatus": 52,
        "isPublish": 1,
        "processStartTime": "2025-01-10 10:07:44",
        "processFinishTime": null,
        "errorReason": null,
        "remark": null,
        "tempCopyFolderId": null
      }
    ],
    "total": 1,
    "size": 10,
    "current": 1,
    "pages": 1
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» records[object]truenonenone
»»» idstringfalsenone新数据ID/文件夹ID
»»» namestringfalsenone数据名称/文件夹名称
»»» parentIdstringfalsenone父级文件夹ID
»»» createBystringfalsenonenone
»»» createByNamestringfalsenonenone
»»» createTimestringfalsenonenone
»»» updateBystringfalsenonenone
»»» updateTimestringfalsenonenone
»»» delFlagstringfalsenonenone
»»» tenantIdstringfalsenonenone
»»» typeintegerfalsenone区分文件夹/文件 1文件夹 2文件
»»» projectIdnullfalsenone所属项目ID
»»» dataIdstringfalsenone源数据ID
»»» txDataobjectfalsenone源数据信息
»»»» idstringtruenonenone
»»»» namestringtruenonenone
»»»» bizTypeintegertruenonenone
»»»» fileNamestringtruenonenone
»»»» fileTypestringtruenonenone
»»»» fileSizestringtruenonenone
»»»» fileMd5stringtruenonenone
»»»» statusintegertruenonenone
»»»» thumbnailnulltruenonenone
»»»» uploadUuidstringtruenonenone
»»»» uploadStartTimestringtruenonenone
»»»» uploadFinishTimestringtruenonenone
»»»» processStartTimenulltruenonenone
»»»» processFinishTimenulltruenonenone
»»»» storagePathstringtruenonenone
»»»» sourcePathnulltruenonenone
»»»» remarknulltruenonenone
»»»» dataGroupIdnulltruenonenone
»»»» createBystringtruenonenone
»»»» createTimestringtruenonenone
»»»» updateBystringtruenonenone
»»»» updateTimestringtruenonenone
»»»» delFlagstringtruenonenone
»»»» tenantIdstringtruenonenone
»»»» errorReasonnulltruenonenone
»»»» isPublishintegertruenonenone
»»»» metadataInfonulltruenonenone
»»»» folderIdnulltruenonenone
»»»» projectIdnulltruenonenone
»»» bizTypeintegerfalsenone数据类型
»»» fileTypestringfalsenone文件类型
»»» uploadStartTimestringfalsenone上传开始时间
»»» fileSizestringfalsenone文件大小
»»» recycleFlagstringfalsenone是否已删除到回收站
»»» dataStatusintegerfalsenone数据处理状态
10:上传中 11:上传成功 12:上传失败
20:待解压 21:解压中 22:解压成功 23:解压失败
30:待转换 31:转换中 32:转换成功 33:转换失败
40:待入库 41:入库中 42:入库成功 43:入库失败
50:待发布 51:发布中 52:发布成功 53:发布失败
»»» isPublishintegerfalsenone是否上传即发布
»»» errorReasonnullfalsenone数据处理异常原因
»»» remarknullfalsenone备注信息
»» totalintegertruenonenone
»» sizeintegertruenonenone
»» currentintegertruenonenone
»» pagesintegertruenonenone
» okbooleantruenonenone

POST 修改数据基础信息

POST /admin/tx/data/updateInfo

主要用来修改备注信息

Body 请求参数

json
{
  "id": "79ee968dc5fb1ffe48896a39120ab465",
  "remark": "asd",
  "projectId": null
}

请求参数

名称位置类型必选说明
Authorizationheaderstringnone
bodybodyobjectnone
» idbodystring新数据ID
» remarkbodystring备注信息
» projectIdbodynull所属项目ID

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "id": "79ee968dc5fb1ffe48896a39120ab465",
    "name": "acrosstiles_xl_3dtiles.zip",
    "parentId": "0",
    "createBy": "admin",
    "createByName": null,
    "createTime": "2025-01-10 10:07:43",
    "updateBy": "admin",
    "updateTime": "2025-01-10 13:16:59",
    "delFlag": "0",
    "tenantId": "1",
    "type": 2,
    "projectId": null,
    "dataId": "970d00a6dd826e726539cc6efbc95dea",
    "txData": null,
    "bizType": 3,
    "fileType": "3dtiles",
    "uploadStartTime": "2025-01-10 10:07:38",
    "parentName": null,
    "fileSize": "87928945",
    "projectName": null,
    "recycleFlag": "0",
    "dataStatus": 52,
    "isPublish": 1,
    "processStartTime": "2025-01-10 10:07:44",
    "processFinishTime": null,
    "errorReason": null,
    "remark": "asd",
    "tempCopyFolderId": null
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» idstringtruenonenone
»» namestringtruenonenone
»» parentIdstringtruenonenone
»» createBystringtruenonenone
»» createByNamenulltruenonenone
»» createTimestringtruenonenone
»» updateBystringtruenonenone
»» updateTimestringtruenonenone
»» delFlagstringtruenonenone
»» tenantIdstringtruenonenone
»» typeintegertruenonenone
»» projectIdnulltruenonenone
»» dataIdstringtruenonenone
»» txDatanulltruenonenone
»» bizTypeintegertruenonenone
»» fileTypestringtruenonenone
»» uploadStartTimestringtruenonenone
»» parentNamenulltruenonenone
»» fileSizestringtruenonenone
»» projectNamenulltruenonenone
»» recycleFlagstringtruenonenone
»» dataStatusintegertruenonenone
»» isPublishintegertruenonenone
»» processStartTimestringtruenonenone
»» processFinishTimenulltruenonenone
»» errorReasonnulltruenonenone
»» remarkstringtruenonenone
»» tempCopyFolderIdnulltruenonenone
» okbooleantruenonenone

GET C端数据列表

GET /admin/tx/folders/resource/listByClient

返回参数基本同[数据列表接口],只返回已发布成功的数据

请求参数

名称位置类型必选说明
parentIdquerystring文件夹ID
projectIdquerystring项目ID
startUploadDatequerystring查询开始时间
endUploadDatequerystring查询结束时间
pagequerystringnone
descsquerystringnone
ascsquerystringnone
keywordquerystringnone
bizTypequerystring数据类型
fileTypequerystring数据格式
Authorizationheaderstringnone

返回示例

json
{
  "code": 0,
  "msg": null,
  "data": {
    "records": [
      {
        "id": "79ee968dc5fb1ffe48896a39120ab465",
        "name": "acrosstiles_xl_3dtiles.zip",
        "parentId": "0",
        "createBy": "admin",
        "createByName": null,
        "createTime": "2025-01-10 10:07:43",
        "updateBy": "admin",
        "updateTime": "2025-01-10 10:27:29",
        "delFlag": "0",
        "tenantId": "1",
        "type": 2,
        "projectId": null,
        "dataId": "970d00a6dd826e726539cc6efbc95dea",
        "txData": {
          "id": "970d00a6dd826e726539cc6efbc95dea",
          "name": "acrosstiles_xl_3dtiles.zip",
          "bizType": 3,
          "fileName": "acrosstiles_xl_3dtiles.zip",
          "fileType": "3dtiles",
          "fileSize": "87928945",
          "fileMd5": "6a9c93da51fcbe3886689f5e072e1e93",
          "status": 20,
          "thumbnail": null,
          "uploadUuid": "970d00a6dd826e726539cc6efbc95dea",
          "uploadStartTime": "2025-01-10 10:07:38",
          "uploadFinishTime": "2025-01-10 10:07:44",
          "processStartTime": null,
          "processFinishTime": null,
          "storagePath": "dataCenter/uploads/970d00a6dd826e726539cc6efbc95dea/data.zip",
          "sourcePath": null,
          "remark": null,
          "dataGroupId": null,
          "createBy": "admin",
          "createTime": "2025-01-10 10:07:37",
          "updateBy": "admin",
          "updateTime": "2025-01-10 10:07:44",
          "delFlag": "0",
          "tenantId": "1",
          "errorReason": null,
          "isPublish": 1,
          "metadataInfo": null,
          "folderId": null,
          "projectId": null
        },
        "bizType": 3,
        "fileType": "3dtiles",
        "uploadStartTime": "2025-01-10 10:07:38",
        "parentName": null,
        "fileSize": "87928945",
        "projectName": null,
        "recycleFlag": "0",
        "dataStatus": 52,
        "isPublish": 1,
        "processStartTime": "2025-01-10 10:07:44",
        "processFinishTime": null,
        "errorReason": null,
        "remark": "asd",
        "tempCopyFolderId": null
      }
    ],
    "total": 1,
    "size": 10,
    "current": 1,
    "pages": 1
  },
  "ok": true
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgnulltruenonenone
» dataobjecttruenonenone
»» records[object]truenonenone
»»» idstringfalsenonenone
»»» namestringfalsenonenone
»»» parentIdstringfalsenonenone
»»» createBystringfalsenonenone
»»» createByNamenullfalsenonenone
»»» createTimestringfalsenonenone
»»» updateBystringfalsenonenone
»»» updateTimestringfalsenonenone
»»» delFlagstringfalsenonenone
»»» tenantIdstringfalsenonenone
»»» typeintegerfalsenonenone
»»» projectIdnullfalsenonenone
»»» dataIdstringfalsenonenone
»»» txDataobjectfalsenonenone
»»»» idstringtruenonenone
»»»» namestringtruenonenone
»»»» bizTypeintegertruenonenone
»»»» fileNamestringtruenonenone
»»»» fileTypestringtruenonenone
»»»» fileSizestringtruenonenone
»»»» fileMd5stringtruenonenone
»»»» statusintegertruenonenone
»»»» thumbnailnulltruenonenone
»»»» uploadUuidstringtruenonenone
»»»» uploadStartTimestringtruenonenone
»»»» uploadFinishTimestringtruenonenone
»»»» processStartTimenulltruenonenone
»»»» processFinishTimenulltruenonenone
»»»» storagePathstringtruenonenone
»»»» sourcePathnulltruenonenone
»»»» remarknulltruenonenone
»»»» dataGroupIdnulltruenonenone
»»»» createBystringtruenonenone
»»»» createTimestringtruenonenone
»»»» updateBystringtruenonenone
»»»» updateTimestringtruenonenone
»»»» delFlagstringtruenonenone
»»»» tenantIdstringtruenonenone
»»»» errorReasonnulltruenonenone
»»»» isPublishintegertruenonenone
»»»» metadataInfonulltruenonenone
»»»» folderIdnulltruenonenone
»»»» projectIdnulltruenonenone
»»» bizTypeintegerfalsenonenone
»»» fileTypestringfalsenonenone
»»» uploadStartTimestringfalsenonenone
»»» parentNamenullfalsenonenone
»»» fileSizestringfalsenonenone
»»» projectNamenullfalsenonenone
»»» recycleFlagstringfalsenonenone
»»» dataStatusintegerfalsenonenone
»»» isPublishintegerfalsenonenone
»»» processStartTimestringfalsenonenone
»»» processFinishTimenullfalsenonenone
»»» errorReasonnullfalsenonenone
»»» remarkstringfalsenonenone
»»» tempCopyFolderIdnullfalsenonenone
»» totalintegertruenonenone
»» sizeintegertruenonenone
»» currentintegertruenonenone
»» pagesintegertruenonenone
» okbooleantruenonenone

GET 获取预览数据索引文件

GET /admin/tx/preview/data/index/

获取已发布数据的索引文件,shareId参数主要用于分享,如果share参数存在,则不校验token

请求参数

名称位置类型必选说明
folderIdpathstring新数据ID
tokenquerystring登录后用户凭证
shareIdquerystring分享记录ID
Authorizationheaderstringnone

返回示例

200 Response

json
{}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

Released under the MIT License.