保存excel导入导出记录(API名称:createRecord)
功能介绍
保存excel导入导出记录
相关接口
| 接口名称 | 调用说明 |
|---|---|
| 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
| 请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
| POST | https://isdp+域名/openApi/v1/excelRecord/createRecord | OpenAPI | application/json |
请求头
| KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
| Content-Type | application/json | 是 | 无 |
| Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| serviceId | string | 否 | 服务Id |
| successRows | string | 否 | 导入导出成功行数 |
| totalRows | array | 是 | 导入导出总函数 |
| taskName | boolean | 否 | 任务名称 |
| taskType | boolean | 否 | 导入导出类型 import/export |
| filename | string | 否 | 文件名 |
| moduleName | string | 否 | 导入导出模块名 |
| sync | string | 否 | 导入导出是否同步 |
| docId | string | 否 | 导出时生成的文件id |
| fileType | string | 否 | 文件类型 |
响应参数
直接返回一个代表当前导入导出任务的taskId数字值
请求示例
{
"serviceId": "tes1t",
"successRows": "1",
"totalRows": "1",
"taskName": "import",
"taskType": "import",
"fileName": "file",
"moduleName": "person Import",
"sync": "1",
"docId": "123",
"fileType": "xlsx"
} 响应示例
779320