# 查询资源所在的单品列表(含资源的上抛)
# 调用方式: GET
# 接口地址:
https://api.freelog.com/v2/resources/catalogues/drafts/{resourceId}/items/resolveResources
1
# url传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
resourceId | 必选 | string | 合集的资源ID |
resolveResourceId | 必选 | string | 节点解决的资源ID;也就是标的物ID;主要是展品对应的资源ID或者其上抛资源ID |
isLoadPolicyInfo | 可选 | int | 是否加载当前解决资源对应的合约的策略信息 |
isTranslate | 可选 | int | 是否翻译当前解决资源对应的合约的策略信息(前提是参数isLoadPolicyInfo=1) |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
itemId | string | 单品ID |
itemTitle | string | 单品标题 |
sortId | number | 单品的排序ID |
mountResourceInfo | object | 单品挂载的资源信息 |
**resourceId | string | 资源ID |
**resourceName | string | 资源名称 |
createDate | date | 创建日期 |
resolveResourceContracts | object[] | 单品直接授权相关的合约信息(只会展示参数resolveResourceId关联的合约) |
**resourceId | string | 解决的资源ID |
**resourceName | string | 解决的资源名称 |
**validContracts | object[] | 使用中的授权合约信息 |
**excludedContracts | object[] | 被排除的授权合约信息 |
**authExcludedItems | object[] | 解决的资源关联的排除规则 |
# 返回示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [
{
"itemId": "9ca866a2",
"itemTitle": "上抛别人的资源",
"sortId": 1,
"mountResourceInfo": {
"resourceType": [],
"resourceId": "66b07354a5aaa50030351b47",
"resourceName": "12345676789/上抛别人的资源",
"versionRange": "*"
},
"createDate": "2024-08-05T06:49:30.268Z",
"resolveResourceContracts": [
{
"resourceId": "66b07354a5aaa50030351b47",
"resourceName": "12345676789/上抛别人的资源",
"validContracts": [
{
"contractId": "66b075fa6ee889002e0bbe45",
"fsmCurrentState": "initial",
"fsmCurrentStateColors": [
"active"
],
"fsmRunningStatus": 4,
"authStatus": 1,
"status": 0,
"licensorId": "66b07354a5aaa50030351b47",
"licensorName": "12345676789/上抛别人的资源",
"licensorOwnerId": 50028,
"licensorOwnerName": "12345676789",
"licenseeId": "667d15a81ef86f002e1d4b69",
"licenseeName": "12345676789/合集001",
"licenseeOwnerId": 50028,
"licenseeOwnerName": "12345676789",
"licenseeIdentityType": 4,
"subjectId": "66b07354a5aaa50030351b47",
"subjectName": "12345676789/上抛别人的资源",
"subjectType": 1,
"contractName": "永久免费",
"policyId": "f182dbabc6e4b24e88a9d1998cb13589",
"createDate": "2024-08-05T06:49:30.211Z",
"fsmDeclarations": {
},
"updateDate": "2024-08-05T06:49:30.250Z",
"licenseeSubjectKey": "667d15a81ef86f002e1d4b69_66b07354a5aaa50030351b47",
"isDefault": false,
"isAuth": true,
"isTestAuth": false,
"policyInfo": {
"status": 0,
"policyId": "f182dbabc6e4b24e88a9d1998cb13589",
"subjectType": 1,
"policyText": "for public\n\ninitial[active]:\n terminate",
"fsmDeclarationInfo": {
"serviceStates": [
{
"name": "active",
"type": "authorization"
}
],
"symbolArgs": {
"envArgs": []
},
"audiences": [
{
"name": "public",
"type": "public"
}
]
},
"fsmDescriptionInfo": {
"initial": {
"transitions": [],
"serviceStates": [
"active"
],
"isInitial": true,
"isAuth": true,
"isTestAuth": false,
"isTerminate": true
}
},
"createDate": "2022-01-19T07:06:39.434Z",
"updateDate": "2022-09-19T08:13:07.636Z",
"translateInfo": {
"content": "公开(所有缔约方可签约)\n现在签约,可获取永久免费授权\r\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
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