basePath: / definitions: MySwagger.Auth: properties: auth_time: example: "2020-01-02 03:04:05" type: string system_id: example: SYS-200201 type: string system_token: example: a6ce11eab94df48a6ce11eab94df48e38f73cf7e38f73cf7 type: string type: object MySwagger.Data: properties: data: example: '{id:12300,name:zhangj,org_id:123001}' type: string data_id: example: "202008080008" type: string del_flag: example: 0 type: integer org_id: example: "200201" type: string type: object MySwagger.DataGet: properties: auth_token: example: DATAEX-TOKEN-a6ce-11ea-b94df48e38f73cf7 type: string data_id: example: "202008080008" type: string data_source: example: ORG type: string org_id: example: "200201" type: string system_id: example: SYS-200201 type: string type: object MySwagger.DataGetResult: properties: datas: items: $ref: '#/definitions/MySwagger.Data' type: array message: example: 操作成功 type: string success: example: true type: boolean type: object MySwagger.DataIn: properties: auth_token: example: DATAEX-TOKEN-a6ce-11ea-b94df48e38f73cf7 type: string data_source: example: ORG type: string datas: items: $ref: '#/definitions/MySwagger.Data' type: array system_id: example: SYS-200201 type: string type: object MySwagger.DataInResult: properties: fail_results: items: $ref: '#/definitions/MySwagger.FailResult' type: array message: example: 操作成功 type: string success: example: true type: boolean success_ids: example: - "202008080008" - "202008080009" - "202008080010" items: type: string type: array type: object MySwagger.DataPage: properties: auth_token: example: DATAEX-TOKEN-a6ce-11ea-b94df48e38f73cf7 type: string data_source: example: ORG type: string org_id: example: "200201" type: string query_page: example: 1 type: integer query_time: example: "2020-01-01 02:03:04" type: string system_id: example: SYS-200201 type: string type: object MySwagger.DataQuery: properties: auth_token: example: DATAEX-TOKEN-a6ce-11ea-b94df48e38f73cf7 type: string data_source: example: ORG type: string org_id: example: "200201" type: string query_conditions: example: - subject_code=22 items: type: string type: array query_page: example: 1 type: integer system_id: example: SYS-200201 type: string type: object MySwagger.DataResult: properties: message: example: 查询成功 type: string result: example: 根据查询请求的format格式,返回查询结果数据 type: string success: example: true type: boolean type: object MySwagger.DataaccessSwag: properties: change_time: type: string consume_orgid: type: string consume_systemid: type: string consume_type: type: integer create_time: type: string datasource_id: type: string delete_flag: type: integer delete_time: type: string enable_flag: type: integer page: example: 1 type: integer query_flag: type: integer set_flag: type: integer type: object MySwagger.DatasourceSwag: properties: collect_flag: type: integer datasource_code: type: string datasource_detail: type: string datasource_name: type: string datastore_type: type: integer delete_flag: type: integer dic_id: type: string enable_flag: type: integer page: example: 1 type: integer provide_orgid: type: string provide_type: type: integer set_flag: type: integer system_id: type: string type: object MySwagger.FailResult: properties: fail_id: example: "202006060001" type: string fail_reason: example: 数据ORG_ID访问权限验证失败,无法修改数据 type: string type: object MySwagger.Join: properties: join_id: example: org_area type: string join_param: example: - "220100" items: type: string type: array type: object MySwagger.Jyt2012Swag: properties: change_time: type: string create_time: type: string delete_flag: type: integer delete_time: type: string dic_info: type: string dic_name: type: string dic_type: type: integer enable_flag: type: integer id: type: string jyt_flag: type: integer page: example: 1 type: integer parent_id: type: string root_flag: type: integer type: object MySwagger.LinksystemSwag: properties: collect_flag: type: integer delete_flag: type: integer enable_flag: type: integer page: example: 1 type: integer provider_name: type: string system_code: type: string system_key: type: string system_name: type: string system_type: type: integer type: object MySwagger.MetadataSwag: properties: check_dic: type: integer check_exist: type: integer check_name: type: integer check_pattern: type: integer check_type: type: integer datasource_id: type: string delete_flag: type: integer dic_id: type: string enable_flag: type: integer id: type: string item_info: type: string item_length: type: integer item_name: type: string item_pattern: type: string item_type: type: string page: example: 1 type: integer type: object MySwagger.OrgtreeSwag: properties: area_id: type: string cat_id: type: string change_time: type: string city_id: type: string create_time: type: string delete_flag: type: integer delete_time: type: string enable_flag: type: integer id: type: string link_id: type: string linksystem_id: type: string org_name: type: string org_type: type: integer page: example: 1 type: integer parent_id: type: string province_id: type: string type: object MySwagger.QueryJoin: properties: access_token: example: system_01##20200102030405##a6ce11eab94df48a6ce11eab type: string query: $ref: '#/definitions/MySwagger.Simple' query_count: example: - total - total2 items: type: string type: array query_format: example: table/json/echarts/antd type: string query_group: example: - area_code - school_type items: type: string type: array query_join: $ref: '#/definitions/MySwagger.Join' type: object MySwagger.QuerySimple: properties: access_token: example: system_01##20200102030405##a6ce11eab94df48a6ce11eab type: string query: $ref: '#/definitions/MySwagger.Simple' query_count: example: - total - total2 items: type: string type: array query_format: example: table/json/echarts/antd type: string query_group: example: - area_code - school_type items: type: string type: array type: object MySwagger.QueryUnion: properties: access_token: example: system_01##20200102030405##a6ce11eab94df48a6ce11eab type: string join_list: items: $ref: '#/definitions/MySwagger.Join' type: array query_count: example: - total - total2 items: type: string type: array query_format: example: table/json/echarts/antd type: string query_group: example: - area_code - school_type items: type: string type: array query_list: items: $ref: '#/definitions/MySwagger.Simple' type: array type: object MySwagger.Simple: properties: query_id: example: org_school_aggs type: string query_param: example: - "100" - test - 2020/07/08 items: type: string type: array type: object dsDataex_MyModel_MySwagger.Result: properties: data: items: additionalProperties: true type: object type: array fail: example: false type: boolean message: example: 操作成功 type: string success: example: true type: boolean type: object dsDataex_MyService_MySwagger.Result: properties: message: example: 接入系统票据验证失败 type: string success: example: false type: boolean type: object host: 127.0.0.1:9009 info: contact: email: 53766543@qq.com name: API Support url: http://www.swagger.io/support description: DataEX Service using GO!!! create by zhangjun 2020-06-03 license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: http://swagger.io/terms/ title: DataEX version: "1.0" paths: /v1/dataex/DataexCollect: post: consumes: - application/json description: 【数据交换平台】数据汇集服务接口,支持批量入库,一个批次少于100条数据。 parameters: - description: 汇集数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataIn' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' summary: 汇集数据 tags: - dataex /v1/dataex/DataexGet: post: consumes: - application/json description: 【数据交换平台】获取数据服务接口。 parameters: - description: 获取数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataGet' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataGetResult' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' summary: 获取数据 tags: - dataex /v1/dataex/DataexPage: post: consumes: - application/json description: 【数据交换平台】分页查询数据服务接口,支持分页查询,支持数据变更时间查询,一个批次返回100条数据【query_page从0开始计数,query_time可以为空】。 parameters: - description: 分页查询数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataPage' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataGetResult' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' summary: 分页查询数据 tags: - dataex /v1/dataex/DataexQuery: post: consumes: - application/json description: 【数据交换平台】条件查询数据服务接口,支持组合条件查询,支持分页查询,一个批次返回100条数据。 parameters: - description: 条件查询数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataQuery' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataGetResult' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' summary: 条件查询数据 tags: - dataex /v1/dataex/DataexSet: post: consumes: - application/json description: 【数据交换平台】修改数据服务接口,支持批量修改,一个批次少于100条数据。 parameters: - description: 修改数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataIn' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataInResult' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' summary: 修改数据 tags: - dataex /v1/dataex/SystemAuth: post: consumes: - application/json description: 【数据交换平台】接入系统鉴权服务接口,使用数据交换平台提供的接入系统id和key,验证成功返回系统票据。 parameters: - description: 接入系统ID、系统生成验证Token和验证时间,备注:system_token = MD5.hash(MD5.hash(system_id+auth_time)+system_key) in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Auth' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyService_MySwagger.Result' summary: 接入系统鉴权 tags: - dataex /v1/openapi/CreateDataaccess: post: consumes: - application/json description: 创建数据订阅 operationId: createDataaccess parameters: - description: 数据订阅 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataaccessSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 创建数据订阅 tags: - dataaccess /v1/openapi/CreateDatasource: post: consumes: - application/json description: 创建数据源 operationId: createDatasource parameters: - description: 数据源 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 创建数据源 tags: - datasource /v1/openapi/CreateJyt2012: post: consumes: - application/json description: 创建标准字典 operationId: createJyt2012 parameters: - description: 标准字典 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Jyt2012Swag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 创建标准字典 tags: - jyt2012 /v1/openapi/CreateLinksystem: post: consumes: - application/json description: 创建接入系统 operationId: createLinksystem parameters: - description: 系统 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.LinksystemSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 创建接入系统 tags: - linksystem /v1/openapi/CreateMetadata: post: consumes: - application/json description: 创建元数据 operationId: createMetadata parameters: - description: 元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 创建元数据 tags: - metadata /v1/openapi/CreateOrgtree: post: consumes: - application/json description: 创建机构 operationId: createOrgtree parameters: - description: 机构 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.OrgtreeSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 创建机构 tags: - orgtree /v1/openapi/DeleteDataaccess/{id}: post: consumes: - application/json description: 删除数据订阅 operationId: deleteDataaccess parameters: - description: 数据订阅ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 删除数据订阅 tags: - dataaccess /v1/openapi/DeleteDatasource/{id}: post: consumes: - application/json description: 删除数据源 operationId: deleteDatasource parameters: - description: 数据源ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 删除数据源 tags: - datasource /v1/openapi/DeleteJyt2012/{id}: post: consumes: - application/json description: 删除标准字典 operationId: deleteJyt2012 parameters: - description: 标准字典ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 删除标准字典 tags: - jyt2012 /v1/openapi/DeleteLinksystem/{id}: post: consumes: - application/json description: 删除接入系统 operationId: deleteLinksystem parameters: - description: 系统ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 删除接入系统 tags: - linksystem /v1/openapi/DeleteMetadata/{id}: post: consumes: - application/json description: 删除元数据 operationId: deleteMetadata parameters: - description: 元数据ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 删除元数据 tags: - metadata /v1/openapi/DeleteOrgtree/{id}: post: consumes: - application/json description: 删除机构 operationId: deleteOrgtree parameters: - description: 机构ID in: path name: id required: true type: string produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 删除机构 tags: - orgtree /v1/openapi/ReadDataaccess: post: consumes: - application/json description: 获取元数据列表 operationId: readDataaccess parameters: - description: 数据订阅 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataaccessSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 获取数据订阅列表 tags: - dataaccess /v1/openapi/ReadDatasource: post: consumes: - application/json description: 获取数据源列表 operationId: readDatasource parameters: - description: 数据源 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 获取数据源列表 tags: - datasource /v1/openapi/ReadJyt2012: post: consumes: - application/json description: 获取标准字典列表 operationId: readJyt2012 parameters: - description: 标准字典 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Jyt2012Swag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 获取标准字典列表 tags: - jyt2012 /v1/openapi/ReadLinksystem: post: consumes: - application/json description: 获取接入系统列表 operationId: readLinksystem parameters: - description: 系统 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.LinksystemSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 获取接入系统列表 tags: - linksystem /v1/openapi/ReadMetadata: post: consumes: - application/json description: 获取元数据列表 operationId: readMetadata parameters: - description: 元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 获取元数据列表 tags: - metadata /v1/openapi/ReadOrgtree: post: consumes: - application/json description: 获取机构列表 operationId: readOrgtree parameters: - description: 机构 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.OrgtreeSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 获取机构列表 tags: - orgtree /v1/openapi/UpdateDataaccess/{id}: post: consumes: - application/json description: 修改数据订阅 operationId: updateDataaccess parameters: - description: 数据订阅ID in: path name: id required: true type: string - description: 数据订阅 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DataaccessSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 修改数据订阅 tags: - dataaccess /v1/openapi/UpdateDatasource/{id}: post: consumes: - application/json description: 修改数据源 operationId: updateDatasource parameters: - description: 数据源ID in: path name: id required: true type: string - description: 数据源 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.DatasourceSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 修改数据源 tags: - datasource /v1/openapi/UpdateJyt2012/{id}: post: consumes: - application/json description: 修改标准字典 operationId: updateJyt2012 parameters: - description: 标准字典ID in: path name: id required: true type: string - description: 标准字典 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.Jyt2012Swag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 修改标准字典 tags: - jyt2012 /v1/openapi/UpdateLinksystem/{id}: post: consumes: - application/json description: 修改接入系统 operationId: updateLinksystem parameters: - description: 系统ID in: path name: id required: true type: string - description: 系统 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.LinksystemSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 修改接入系统 tags: - linksystem /v1/openapi/UpdateMetadata/{id}: post: consumes: - application/json description: 修改元数据 operationId: updateMetadata parameters: - description: 元数据ID in: path name: id required: true type: string - description: 元数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.MetadataSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 修改元数据 tags: - metadata /v1/openapi/UpdateOrgtree/{id}: post: consumes: - application/json description: 修改机构 operationId: updateOrgtree parameters: - description: 机构ID in: path name: id required: true type: string - description: 机构 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.OrgtreeSwag' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' "400": description: Bad Request schema: $ref: '#/definitions/dsDataex_MyModel_MySwagger.Result' summary: 修改机构 tags: - orgtree /v1/report/QueryJoin: post: consumes: - application/json description: 【统计分析平台】ES-SQL数据关联查询接口,使用接入系统自定义的查询,与基础数据关联后【左关联】,返回查询结果数据。 parameters: - description: 关联查询数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.QueryJoin' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataResult' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.DataResult' summary: ES-SQL数据关联查询 tags: - report /v1/report/QuerySimple: post: consumes: - application/json description: 【统计分析平台】ES-SQL数据简单查询接口,使用接入系统自定义的查询,返回查询结果数据。 parameters: - description: 简单查询数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.QuerySimple' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataResult' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.DataResult' summary: ES-SQL数据查询 tags: - report /v1/report/QueryUnion: post: consumes: - application/json description: 【统计分析平台】ES-SQL数据合并查询接口,使用接入系统自定义的查询【支持多个查询】,与基础数据关联后【支持多次左关联】,返回查询结果数据。 parameters: - description: 合并查询数据 in: body name: input required: true schema: $ref: '#/definitions/MySwagger.QueryUnion' produces: - application/json responses: "200": description: OK schema: $ref: '#/definitions/MySwagger.DataResult' "400": description: Bad Request schema: $ref: '#/definitions/MySwagger.DataResult' summary: ES-SQL数据合并查询 tags: - report securityDefinitions: BasicAuth: type: basic swagger: "2.0"