# 查看资源分页列表

# 调用方式: GET

# 接口地址:

url: https://api.freelog.com/v2/resources
url2 : https://api.freelog.com/v2/resources/search 
1
2

URL1数据来源于搜索引擎. url2数据来源于DB

# url1传入参数说明:

参数 必选 类型及范围 说明
skip 可选 int 跳过的数量.默认为0.
limit 可选 int 本次请求获取的数据条数.一般不允许超过100
keywords 可选 string 搜索关键字(目前针对发行名称检索),encodeURIComponent编码
resourceType 可选 string 资源类型[详见附表]
resourceTypeCode 可选 string 资源类型编号
resourceTypeCategory 可选 string 资源类型分类,1:基础类型,2:自定义类型,其实只有2时生效,生效时,resourceTypeCode为父类类型 3:基础类型 + 自定义类型
omitResourceType 可选 string 忽略的资源类型,与resourceType参数互斥
isSelf 可选 int 资源查询范围0:全部(默认) 1:自己的
userId 可选 int 资源作者ID
status 可选 int 状态 0:待发行(初始状态) 1:上架 2:冻结 4:下架(也叫待上架) 默认查询全部
isLoadPolicyInfo 可选 int 是否加载策略详情信息,0:否(默认) 1:是
isLoadLatestVersionInfo 可选 int 是否加载资源最新版本详情信息 0:否(默认) 1:是
isLoadFreezeReason 可选 int 是否加载已被冻结的资源的冻结原因
projection 可选 string 过滤需要返回的字段,多个用逗号分隔,默认全部
startCreateDate 可选 string 开始创建日期
endCreateDate 可选 string 截止创建日期
tags 可选 string 搜索的标签,多个用逗号分隔
operationCategoryCode 可选 string 运营分类编号
operationTypes 可选 number[] 运营数据类型 (1:违规 2:低质量 3:正常 4:优良 5:编辑精选)

# url2传入参数说明:

参数 必选 类型及范围 说明
skip 可选 int 跳过的数量.默认为0.
limit 可选 int 本次请求获取的数据条数.一般不允许超过100
keywords 可选 string 搜索关键字(目前针对发行名称检索),encodeURIComponent编码
resourceType 可选 string 资源类型[详见附表]
omitResourceType 可选 string 忽略的资源类型,与resourceType参数互斥
isSelf 可选 int 资源查询范围0:全部(默认) 1:自己的
userId 可选 int 资源所属用户ID
resourceId 可选 string 资源ID
status 可选 int 状态 0:待发行(初始状态) 1:上架 2:冻结 4:下架(也叫待上架) 默认查询全部
isLoadPolicyInfo 可选 int 是否加载策略详情信息,0:否(默认) 1:是
isLoadLatestVersionInfo 可选 int 是否加载资源最新版本详情信息 0:否(默认) 1:是
projection 可选 string 过滤需要返回的字段,多个用逗号分隔,默认全部
startCreateDate 可选 string 开始创建日期
endCreateDate 可选 string 截止创建日期
tags 可选 string 搜索的标签,多个用逗号分隔
sort 可选 string 排序条件.例如createDate:1,resourceVersions.createDate:-1 其他排序都是类似{字段名}:{1|-1}

# 返回说明:

返回值字段 字段类型 字段说明
resourceId string 资源ID
resourceType string[] 资源类型[详见附表]
resourceName string 资源名称
userId int 用户ID
username string 用户姓名
coverImages string[] 封面图片
intro string 资源简介
tags string[] 资源标签集
latestVersion string 资源最大版本号
resourceVersions object[] 资源版本信息
status int 状态 0:待发行(初始状态) 1:上架 2:冻结 4:下架(也叫待上架)
** version string 资源版本号
** versionId string 资源版本Id
** createDate date 版本创建时间
policies object[] 资源授权策略
baseUpcastResources object[] 基础上抛信息
** resourceId string 上抛资源ID
** resourceName string 上抛资源名称
freezeReason string or null 资源被冻结原因.只有已被冻结的资源才有此字段,注意null判定
operationType int 运营数据类型 (1:违规 2:低质量 3:正常 4:优良 5:编辑精选)
serializeStatus int 连载状态(0:连载中 1:已完结)
subjectType int 标的物类型(1:普通资源 4:合集资源)

# 示例

{
	"ret": 0,
	"errCode": 0,
	"errcode": 0,
	"msg": "success",
	"data": {
		"totalItem": 463,
		"skip": 0,
		"limit": 10,
		"dataList": [{
			"resourceId": "6231b5f6e516ce002e7e5b8a",
			"baseUpcastResources": [],
			"coverImages": ["https://image.freelog.com/preview-image/b8fc2320ecb85b783472831e9f1ff850bd90961a.png#x=120&y=0&w=1200&h=900&width=1440&height=900"],
			"createDate": "2022-03-16T10:03:34.550Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [{
				"policyId": "49d0eb3e490b693993bf0fcc2fd78ad2",
				"policyName": "测试授权",
				"status": 1
			}],
			"resourceName": "chwallet/测试授权3",
			"resourceNameAbbreviation": "测试授权3",
			"resourceType": "image",
			"resourceVersions": [{
				"createDate": "2022-03-16T10:03:41.350Z",
				"version": "0.1.0",
				"versionId": "aef1e1ac539c25e6f7750be955fc3e49"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-16T10:04:50.068Z",
			"userId": 50064,
			"username": "chwallet"
		}, {
			"resourceId": "6231b349e516ce002e7e5b31",
			"baseUpcastResources": [],
			"coverImages": ["https://image.freelog.com/preview-image/fe723ab62a2431152bddb8188a37abe3e7d4126e.png#x=0&y=95&w=525&h=394&width=525&height=583"],
			"createDate": "2022-03-16T09:52:09.098Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [],
			"resourceName": "chsignup1/测试授权",
			"resourceNameAbbreviation": "测试授权",
			"resourceType": "image",
			"resourceVersions": [{
				"createDate": "2022-03-16T09:52:17.925Z",
				"version": "0.1.0",
				"versionId": "6fca00c11da446338e90d003f2435a1d"
			}],
			"status": 0,
			"tags": [],
			"updateDate": "2022-03-16T09:52:17.933Z",
			"userId": 50042,
			"username": "chsignup1"
		}, {
			"resourceId": "62285994182192002eefd393",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-09T07:39:00.550Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [{
				"policyId": "75963a428d57caac1c61fd597af96f20",
				"policyName": "free",
				"status": 1
			}],
			"resourceName": "Freelog/超级玛丽",
			"resourceNameAbbreviation": "超级玛丽",
			"resourceType": "nesrom",
			"resourceVersions": [{
				"createDate": "2022-03-09T07:39:10.849Z",
				"version": "0.1.0",
				"versionId": "0e7f020dd413ced59789b72ab879bc56"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-09T07:39:19.295Z",
			"userId": 50031,
			"username": "Freelog"
		}, {
			"resourceId": "6228594a182192002eefd367",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-09T07:37:46.475Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [{
				"policyId": "0d54a6b1df2bbd00eb5be20ebdfc6682",
				"policyName": "free",
				"status": 1
			}],
			"resourceName": "Freelog/1981",
			"resourceNameAbbreviation": "1981",
			"resourceType": "nesrom",
			"resourceVersions": [{
				"createDate": "2022-03-09T07:38:11.957Z",
				"version": "0.1.0",
				"versionId": "60e1ff7200c7b213f1d2904cb73740a4"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-09T07:38:22.290Z",
			"userId": 50031,
			"username": "Freelog"
		}, {
			"resourceId": "622858f3182192002eefd33c",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-09T07:36:19.509Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [{
				"policyId": "0d54a6b1df2bbd00eb5be20ebdfc6682",
				"policyName": "free",
				"status": 1
			}],
			"resourceName": "Freelog/魂斗罗",
			"resourceNameAbbreviation": "魂斗罗",
			"resourceType": "nesrom",
			"resourceVersions": [{
				"createDate": "2022-03-09T07:36:48.012Z",
				"version": "0.1.0",
				"versionId": "3a8d255724ab314589252b3bcf01aa24"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-09T07:36:57.256Z",
			"userId": 50031,
			"username": "Freelog"
		}, {
			"resourceId": "62272318182192002eefc16d",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-08T09:34:16.814Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [{
				"policyId": "67b88f266da4973ecf98fb1042ce33f9",
				"policyName": "免费订阅(包月)",
				"status": 1
			}],
			"resourceName": "ZhuC/五层依赖md",
			"resourceNameAbbreviation": "五层依赖md",
			"resourceType": "markdown",
			"resourceVersions": [{
				"createDate": "2022-03-08T09:35:10.880Z",
				"version": "0.1.0",
				"versionId": "7bdd7981b17348d9f03b0324122b9d99"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-08T09:35:15.316Z",
			"userId": 50060,
			"username": "ZhuC"
		}, {
			"resourceId": "6227210b182192002eefbbff",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-08T09:25:31.219Z",
			"intro": "",
			"latestVersion": "0.1.4",
			"policies": [{
				"policyId": "67b88f266da4973ecf98fb1042ce33f9",
				"policyName": "免费订阅(包月)",
				"status": 1
			}],
			"resourceName": "ZhuC/四层依赖md",
			"resourceNameAbbreviation": "四层依赖md",
			"resourceType": "markdown",
			"resourceVersions": [{
				"createDate": "2022-03-08T09:27:32.367Z",
				"version": "0.1.0",
				"versionId": "9d908229152575e44326c58763113636"
			}, {
				"createDate": "2022-03-08T09:29:00.385Z",
				"version": "0.1.1",
				"versionId": "d3cafb84bdbcc1bac50a95bc5c0c83d4"
			}, {
				"createDate": "2022-03-08T09:30:06.809Z",
				"version": "0.1.2",
				"versionId": "3038ae3f247e1d085819308579565734"
			}, {
				"createDate": "2022-03-08T09:31:08.302Z",
				"version": "0.1.3",
				"versionId": "7c13538983bd7a857a6f372f1e644ceb"
			}, {
				"createDate": "2022-03-08T09:33:35.169Z",
				"version": "0.1.4",
				"versionId": "260c8be386a815b18b4234f2e249aff2"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-08T09:33:35.189Z",
			"userId": 50060,
			"username": "ZhuC"
		}, {
			"resourceId": "62272007182192002eefbb16",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-08T09:21:11.735Z",
			"intro": "",
			"latestVersion": "0.1.0",
			"policies": [{
				"policyId": "67b88f266da4973ecf98fb1042ce33f9",
				"policyName": "免费订阅(包月)",
				"status": 1
			}],
			"resourceName": "ZhuC/三层依赖",
			"resourceNameAbbreviation": "三层依赖",
			"resourceType": "markdown",
			"resourceVersions": [{
				"createDate": "2022-03-08T09:24:06.777Z",
				"version": "0.1.0",
				"versionId": "92ea67d9b0fad4a678bd5b239eab4ce5"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-08T09:24:11.234Z",
			"userId": 50060,
			"username": "ZhuC"
		}, {
			"resourceId": "62270f02182192002eefb2b7",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-08T08:08:34.036Z",
			"intro": "",
			"latestVersion": "0.1.1",
			"policies": [{
				"policyId": "67b88f266da4973ecf98fb1042ce33f9",
				"policyName": "免费订阅(包月)",
				"status": 1
			}],
			"resourceName": "ZhuC/二层依赖md",
			"resourceNameAbbreviation": "二层依赖md",
			"resourceType": "markdown",
			"resourceVersions": [{
				"createDate": "2022-03-08T08:46:10.546Z",
				"version": "0.1.0",
				"versionId": "372f9c0baeca957b35fa215a43cbd594"
			}, {
				"createDate": "2022-03-08T08:55:45.601Z",
				"version": "0.1.1",
				"versionId": "6649433bdd1b051f589201508c63d2a6"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-08T08:55:45.611Z",
			"userId": 50060,
			"username": "ZhuC"
		}, {
			"resourceId": "62270e8a182192002eefb1e9",
			"baseUpcastResources": [],
			"coverImages": [],
			"createDate": "2022-03-08T08:06:34.511Z",
			"intro": "",
			"latestVersion": "0.1.1",
			"policies": [{
				"policyId": "67b88f266da4973ecf98fb1042ce33f9",
				"policyName": "123",
				"status": 1
			}],
			"resourceName": "ZhuC/一层依赖md",
			"resourceNameAbbreviation": "一层依赖md",
			"resourceType": "markdown",
			"resourceVersions": [{
				"createDate": "2022-03-08T08:06:46.927Z",
				"version": "0.1.0",
				"versionId": "7a2594bdf84ab24b4311730300e3815d"
			}, {
				"createDate": "2022-03-08T08:09:38.995Z",
				"version": "0.1.1",
				"versionId": "7fcdabb561b5aff8fb61b8f5f82a3984"
			}],
			"status": 1,
			"tags": [],
			"updateDate": "2022-03-08T08:09:39.011Z",
			"userId": 50060,
			"username": "ZhuC"
		}]
	}
}
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282