# 查询资源所在的展品列表
# 调用方式: GET
# 接口地址:
https://api.freelog.comv2/presentables/resolveResources/{resolveResourceId}?nodeId={nodeId}
1
# url传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
resolveResourceId | 必选 | string | 节点解决的资源ID;也就是标的物ID;主要是展品对应的资源ID或者其上抛资源ID |
nodeId | 必选 | int | 本次查询对应的节点ID |
isLoadPolicyInfo | 可选 | int | 是否加载当前解决资源对应的合约的策略信息 |
isTranslate | 可选 | int | 是否翻译当前解决资源对应的合约的策略信息(前提是参数isLoadPolicyInfo=1) |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
presentableId | string | 展示方案ID |
presentableName | string | 展示方案名称,节点内唯一 |
presentableTitle | string | 展示方案标题,用于展示 |
tags | string[] | 用户定义的tags |
intro | string | presentable简介 |
onlineStatus | int | 上线状态 0:下线 1:上线 |
userId | int | 创建方案的用户ID |
nodeId | int | 节点ID |
resolveResources | object[] | 资源以及其上抛的解决方式 |
** resourceId | string | 解决的资源ID |
** resourceName | string | 解决的资源名称 |
policies | object[] | 对外授权的策略组 |
** policyId | string | 策略ID |
** policyName | string | 策略名称 |
** status | int | 策略状态 0:下线(未启用) 1:上线(启用) |
resourceInfo | object | presentable引用的资源基础信息 |
** resourceId | string | 资源ID |
** resourceName | string | 资源名称 |
** resourceType | string | 资源类型 |
version | string | 展品的版本,同引用的资源版本号 |
createDate | date | 创建日期 |
versionProperty | object | 展品的meta属性 |
versionUpdateTipStatus | int | 展品版本更新提示状态 1:无需更新 2:需要更新 3:已忽略本次更新 |
resolveResourceContracts | object[] | 展品直接授权相关的合约信息(只会展示参数resolveResourceId关联的合约) |
**resourceId | string | 解决的资源ID |
**resourceName | string | 解决的资源名称 |
**validContracts | object[] | 使用中的授权合约信息 |
**excludedContracts | object[] | 被排除的授权合约信息 |
**authExcludedItems | object[] | 解决的资源关联的排除规则 |
# 返回示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [
{
"presentableTitle": "Exhibit001",
"tags": [],
"coverImages": [
"https://image.freelog.com/preview-image/6c1436dd2b17045aaabe4f4996903d77b5a088b0"
],
"onlineStatus": 0,
"autoUpdateStatus": 0,
"nodeSideAuthStatus": 1,
"resourceSideAuthStatus": 1,
"resourceDependencyFreezeStatus": 1,
"status": 0,
"intro": "",
"isTheme": 0,
"authStatus": 0,
"presentableName": "Exhibit001",
"version": "0.0.1",
"resolveResources": [
{
"resourceId": "5f31146b1bbe52002fc8cbcb",
"resourceName": "12345676789/havePolice001"
}
],
"policies": [],
"nodeId": 80000004,
"userId": 50028,
"resourceInfo": {
"resourceType": [
"图片"
],
"resourceOwnerId": 50028,
"resourceId": "5f31146b1bbe52002fc8cbcb",
"resourceName": "12345676789/havePolice001",
"resourceTypeCode": "RT005",
"subjectType": 1
},
"createDate": "2020-10-15T09:07:02.268Z",
"updateDate": "2024-11-19T03:34:32.897Z",
"authExcludedItems": [],
"presentableId": "5f8811368d5a320034cb61b1",
"resolveResourceContracts": [
{
"resourceId": "5f31146b1bbe52002fc8cbcb",
"resourceName": "12345676789/havePolice001",
"validContracts": [
{
"contractId": "5f8811367e3e67002f8d1cd8",
"fsmCurrentState": "initial",
"fsmCurrentStateColors": [],
"fsmRunningStatus": 4,
"authStatus": 1,
"status": 0,
"licensorId": "5f31146b1bbe52002fc8cbcb",
"licensorName": "12345676789/havePolice001",
"licensorOwnerId": 50028,
"licensorOwnerName": "12345676789",
"licenseeId": "80000004",
"licenseeName": "节点05",
"licenseeOwnerId": 50028,
"licenseeOwnerName": "12345676789",
"licenseeIdentityType": 2,
"subjectId": "5f31146b1bbe52002fc8cbcb",
"subjectName": "12345676789/havePolice001",
"subjectType": 1,
"contractName": "我的策略",
"policyId": "6546452dfffd8f249d83bb8f6f1897e8",
"createDate": "2020-10-15T09:07:02.054Z",
"fsmDeclarations": {
},
"updateDate": "2021-01-04T08:23:01.802Z",
"licenseeSubjectKey": "80000004_5f31146b1bbe52002fc8cbcb",
"isDefault": false,
"isAuth": true,
"isTestAuth": false,
"policyInfo": {
"status": 0,
"subjectType": 1,
"policyId": "6546452dfffd8f249d83bb8f6f1897e8",
"policyText": "for public:\n initial:\n active\n terminate",
"fsmDescriptionInfo": {
"initial": {
"authorization": [
"active"
],
"isInitial": true,
"isAuth": true,
"isTestAuth": true,
"transitions": []
}
},
"createDate": "2021-01-04T08:18:05.297Z",
"updateDate": "2022-09-19T08:13:07.631Z",
"translateInfo": {
"content": "公开(所有缔约方可签约)\n\n初始状态:\n 停止接收事件\n\n"
}
}
}
],
"excludedContracts": [],
"authExcludedItems": []
}
]
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
← 忽略展品更新提醒 批量修改展品授权排除项 →