API 文档

Subscription: fetch

根据订阅参数获取订阅对象。

Request

GET /api/subscription/user-subscription/fetch/

Request Parameters

subscribe接口的BODY参数相同。

Response

200

获取对象功能(即已订阅)

{
            "id": 47,
            "user": 7815769374283,
            "followed_user": 3120595892220,
            "followed_category": null,
            "apply_scene": null,
            "subscription_type": "follow_user",
            "created_at": "2022-01-10T08:52:58.425956Z",
            "updated_at": "2022-01-10T08:52:58.425387Z",
            "entity_type": 100
}

404

对象不存在(即未订阅)

Activity: comment count

根据过滤条件查询评论数。

Request

GET /api/activity/comment/comment_count/

Request Parameters

NameValueDescriptionNotes
target_typeenum评论目标对象类型Comment.TargetType
metaJSON评论对象的meta属性包含有此参数内容目前TargetType.Dimzou_Reword的评论对象meta为:
{"node_id": node_id, "paragraph_id": paragraph_id}
其他类型的meta为空对象。

Example

GET /api/activity/comment/comment_count/?target_type=400&meta={%22node_id%22%3A%208553}

Response

200

返回总评论数

{
    "data": {
        "count": 7
    }
}