# 获取合集资源的单品列表

# 调用方式: GET

# 接口地址:

正式 https://api.freelog.com/v2/resources/catalogue/{resourceId}/items
草稿 https://api.freelog.com/v2/resources/catalogues/drafts/{resourceId}/items
1
2

# url传入参数说明:

参数 必选 类型及范围 说明
resourceId 必选 string 资源ID
skip 可选 int 跳过的条目数量
limit 可选 int 获取的条目数量
sortField 可选 string 排序字段 序号:sortId 添加时间:createDate 默认是序号排序
sortType 可选 int 排序方式 1:升序 -1:倒序 默认是升序

# 返回说明:

返回值字段 字段类型 字段说明
itemId string 单品ID
itemTitle string 单品标题
sortId number 单品的排序ID
resourceId string 资源ID
resourceName string 资源名称
createDate date 创建日期

# 示例

{
    "ret": 0,
    "errCode": 0,
    "errcode": 0,
    "msg": "success",
    "data": {
        "skip": 0,
        "limit": 10,
        "totalItem": 3,
        "dataList": [
            {
                "itemId": "0e66eab5",
                "itemTitle": "b",
                "sortId": 1,
                "resourceId": "6390569cb68495002e482839",
                "resourceName": "yuliang/默认封面测试",
                "createDate": "2024-06-25T06:33:24.247Z"
            },
            {
                "itemId": "a2086a49",
                "itemTitle": "a",
                "sortId": 2,
                "resourceId": "63906469735f5e002e49f710",
                "resourceName": "yuliang/上抛测试",
                "createDate": "2024-06-25T06:33:24.247Z"
            },
            {
                "itemId": "9b859f82",
                "itemTitle": "我的第二个单品2",
                "sortId": 3,
                "resourceId": "61b01337db219c002f64f39c",
                "resourceName": "yuliang/tt",
                "createDate": "2024-06-21T08:51:14.482Z"
            }
        ]
    }
}
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