有关此资源的方法列表,请参阅本页结尾。
资源表示
事件。
{
"id": integer,
"event_time": string,
"title": string,
"content": string,
"html_content": string,
"plates": [
Plate
],
"view_permission": enum,
"create_time": string,
"last_modified": string,
"status": enum,
"comment_count": integer,
"like_count": integer,
"the_moment": [
Event
],
"place_around": [
PlaceAround
],
"user": User,
"city": string,
"district": string,
"province": string,
"comments": [
Comment
]
}| Property name | Value | Description | Notes |
|---|---|---|---|
| id | integer | 事件 ID | Primary Key |
| event_time | date | 事件发生日期 | |
| title | string | 事件标题 | 纯文本 |
| content | string | 事件内容 | 纯文本 |
| html_content | string | 事件内容html | HTML文本 |
| plates[] | list | 事件的附件图片 | Xfile.Plate |
| view_permission | enum | 事件的阅读权限 | Event.ViewPermission |
| create_time | string | 创建时间 | |
| last_modified | string | 最近更新时间 | |
| status | enum | 事件状态 | Event.Status |
| comment_count | integer | 事件的总评论数 | |
| like_count | integer | 事件的总点赞数 | |
| the_moment[] | list | 与该事件发生在同一天的其他事件 | Xfile.Event |
| place_around[] | list | 与该事件发生在同一天的站外新闻 | Xfile.PlaceAround |
| user | nested object | 事件作者的信息 | User.Profile |
| city | string | 该事件发生的城市 | 该字段仅支持中国 |
| district | string | 该事件发生的区 | 该字段仅支持中国 |
| province | string | 该事件发生的省份 | 该字段仅支持中国 |
| comments[] | list | 该事件的评论列表 | Activity.Comment |
Methods
create
创建事件。
update
更新事件。
delete
删除事件。
list
返回事件列表。
get
返回指定事件。
newCommentEvent
返回用户最近被评论过的前10条事件列表。
userEvents
返回指定用户创建的事件列表。