File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 29
29
- 用户关系
30
30
- [x] 获取关注列表
31
31
- [x] 获取被关注列表
32
- - 动态
32
+ - 动态帖子
33
33
- [x] 发送动态
34
34
- [x] 获取动态详情
35
35
- [x] 分享动态
42
42
- [x] 发送评论
43
43
- [x] 点赞
44
44
- [x] 取消点赞
45
- - 主页
45
+ - 动态
46
46
- [x] 获取用户动态
47
+ - [x] 获取关注动态
47
48
- 通知
48
49
- [x] 获取通知列表
49
50
- 上传
Original file line number Diff line number Diff line change @@ -20,3 +20,25 @@ export const single = async <T = PersonalUpdate.SingleResponse>(
20
20
} ,
21
21
} )
22
22
)
23
+
24
+ /**
25
+ * 获取关注动态
26
+ * @param option 分页选项
27
+ */
28
+ export const followingUpdates = async <
29
+ T = PersonalUpdate . FollowingUpdatesResponse
30
+ > (
31
+ option : PaginationOption < {
32
+ session : 'PopulatedUpdate'
33
+ lastReadTime : number
34
+ lastPageEarliestTime : number
35
+ } > = { }
36
+ ) =>
37
+ toResponse < T > (
38
+ request . post ( '1.0/personalUpdate/followingUpdates' , {
39
+ json : {
40
+ limit : option . limit ?? 10 ,
41
+ loadMoreKey : option . loadMoreKey ,
42
+ } ,
43
+ } )
44
+ )
Original file line number Diff line number Diff line change @@ -116,6 +116,15 @@ export namespace PersonalUpdate {
116
116
lastId : string
117
117
}
118
118
}
119
+
120
+ export interface FollowingUpdatesResponse {
121
+ data : PostDetail [ ]
122
+ loadMoreKey ?: {
123
+ session : 'PopulatedUpdate'
124
+ lastPageEarliestTime : number
125
+ lastReadTime : number
126
+ }
127
+ }
119
128
}
120
129
121
130
export namespace Comments {
You can’t perform that action at this time.
0 commit comments