Fx构造函数
# new ToolsService()
DataStore的云盘数据转换服务
- See:
-
- 该方法强依赖datastore
- http://192.168.199.53:9011/clouddisk/rest/swagger-ui.html
Example
let service = new ToolsService({ domain: "http://192.168.199.53:9011"});
service.setHeaders({authorization: 'pk.xxxxxx'});
service.gettasks({
taskid: "9baaeff5-7b08-4681-b0d4-ce2e70c1d61e",
taskName: "创建缓冲分析任务",
srcUrl: "",
taskType: 13,
beginTime: 1621305760000
endTime: 1621305770000
}, (res) => {}, (error) => {});
成员变量
方法
# gettasks(options, onSuccess, onError)
空间数据元数据
参数:
名称 | 类型 | 属性 | 默认值 | 描述 |
---|---|---|---|---|
options |
Object | 请求参数 |
||
taskID |
String |
<optional> |
taskID |
|
taskName |
String |
<optional> |
taskName |
|
srcUrl |
String |
<optional> |
srcUrl |
|
taskType |
Number |
<optional> |
任务类型id,从字典接口获取(task) |
|
beginTime |
Number |
<optional> |
开始时间 时间戳 毫秒 |
|
endTime |
Number |
<optional> |
结束时间 时间戳 毫秒 |
|
pageSize |
Number |
<optional> |
20 | pageSize |
pageNum |
Number |
<optional> |
1 | pageNum |
onSuccess |
function | 成功回调 |
||
onError |
function | 失败回调 |
Example
http://192.168.199.53:9011/clouddisk/rest/CalculateModel/catalog