# 查看单品详情
# 调用方式: GET
# 接口地址:
草稿 https://api.freelog.com/v2/resources/catalogues/drafts/{resourceId}/items/{itemId}
1
# url传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
resourceId | 必选 | string | 合集资源ID |
itemId | 必选 | string | 单品ID |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
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": {
"resourceId": "667d15a81ef86f002e1d4b69",
"resourceTitle": "合集001",
"resourceType": [
"主题"
],
"latestVersion": "1.0.0",
"intro": "",
"coverImages": [],
"status": 4,
"latestVersionReleaseDate": "2024-08-05T06:49:30.322Z",
"resourceName": "12345676789/合集001",
"userId": 50028,
"username": "12345676789",
"versionProperty": {
}
},
"createDate": "2024-08-05T06:49:30.268Z",
"number": "",
"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": []
},
{
"resourceId": "66a8b84ba5aaa5003006f5bc",
"resourceName": "dj-test/字字句句",
"validContracts": [
{
"contractId": "66b076066ee889002e0bbe58",
"fsmCurrentState": "initial",
"fsmCurrentStateColors": [],
"fsmRunningStatus": 4,
"authStatus": 128,
"status": 0,
"licensorId": "66a8b84ba5aaa5003006f5bc",
"licensorName": "dj-test/字字句句",
"licensorOwnerId": 50493,
"licensorOwnerName": "dj-test",
"licenseeId": "667d15a81ef86f002e1d4b69",
"licenseeName": "12345676789/合集001",
"licenseeOwnerId": 50028,
"licenseeOwnerName": "12345676789",
"licenseeIdentityType": 4,
"subjectId": "66a8b84ba5aaa5003006f5bc",
"subjectName": "dj-test/字字句句",
"subjectType": 1,
"contractName": "永久解锁",
"policyId": "60db9e0215989e3386c52f998d366bb9",
"createDate": "2024-08-05T06:49:42.918Z",
"fsmDeclarations": {
"envArgs": [
{
"name": "self.account",
"accountId": "233369174372304",
"ownerName": "dj-test"
}
]
},
"updateDate": "2024-08-05T06:49:42.944Z",
"licenseeSubjectKey": "667d15a81ef86f002e1d4b69_66a8b84ba5aaa5003006f5bc",
"isDefault": false,
"isAuth": false,
"isTestAuth": false,
"policyInfo": {
"status": 0,
"policyId": "60db9e0215989e3386c52f998d366bb9",
"subjectType": 1,
"policyText": "for public\n\ninitial:\n ~freelog.TransactionEvent(\"1.9\",\"self.account\") =\u003E auth\nauth[active]:\n terminate",
"fsmDeclarationInfo": {
"serviceStates": [
{
"name": "active",
"type": "authorization"
}
],
"symbolArgs": {
"envArgs": [
"self.account"
]
},
"audiences": [
{
"name": "public",
"type": "public"
}
]
},
"fsmDescriptionInfo": {
"initial": {
"transitions": [
{
"toState": "auth",
"service": "freelog",
"name": "TransactionEvent",
"args": {
"amount": 1.9,
"account": "self.account"
},
"code": "S201",
"isSingleton": true,
"eventId": "a2da448a"
}
],
"serviceStates": [],
"isInitial": true,
"isAuth": false,
"isTestAuth": false
},
"auth": {
"transitions": [],
"serviceStates": [
"active"
],
"isAuth": true,
"isTestAuth": false,
"isTerminate": true
}
},
"createDate": "2023-09-22T09:19:53.927Z",
"updateDate": "2023-09-22T09:19:53.927Z",
"translateInfo": {
"content": "公开(所有缔约方可签约)\n支付1.9羽币,永久解锁。\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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220