用户可订阅某一类资源。
资源
UserSubscription
{
"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
}
Property name | Value | Description | Notes |
id | integer | 订阅的ID | |
user | uid | 订阅者的uid | |
followed_user | uid | 被订阅者的uid | 如果订阅类型不是用户时无效 |
followed_category | integer | 分类id | 如果订阅类型不是分类时无效 |
apply_scene | string | 应用场景 | 如果订阅类型不是应用场景时无效 |
subscription_type | enum | 订阅类型 | Subscription.Type |
created_at | ISO8601 string | 创建时间 | |
updated_at | ISO8601 string | 更新时间 | |
entity_type | enum | 内容类型 | Subscription.EntityType |
Enums
Subscription.Type
enum SubscriptionType {
FOLLOW_USER = "follow_user",
FOLLOW_CATEGORY = "follow_category",
APPLY_SCENE = "apply_scene"
}
Subscription.EntityType
enum EntityType {
FILEX = 0,
DIMZOU = 100
}