# 收藏资源

# 调用方式: POST

# 接口地址:

https://api.freelog.com/v2/collections/resources
1

# body传入参数说明:

参数 必选 类型及范围 说明
resourceId 必选 string 资源ID

# 返回说明:

返回值字段 字段类型 字段说明
resourceId string 资源ID
resourceType string 资源类型[详见附表]
resourceName string 资源名称
authorId int 资源作者ID
authorName string 资源作者姓名
userId int 用户ID
createDate datetime 收藏日期
updateDate datetime 更新日期

# 示例

{
    "ret": 0,
    "errcode": 0,
    "msg": "success",
    "data": {
        "authorName": "yuliang",
        "status": 0,
        "resourceId": "5ee3288b32f1a8439c207aa2",
        "resourceName": "yuliang/my-first-resource",
        "resourceType": "text",
        "authorId": 50021,
        "userId": 50021,
        "createDate": "2020-06-23T08:04:20.076Z",
        "updateDate": "2020-06-23T08:04:20.076Z"
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16