Skip to content

Commit 4b5aa52

Browse files
committed
fix(discussions): update response types
1 parent 92bbfdb commit 4b5aa52

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

discussions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</tr>
1414
<tr>
1515
<th align="right">响应主体</th>
16-
<td><code>application/json</code> (<code>DataResponse&lt;PostListData&gt;</code>)</td>
16+
<td><code>application/json</code> (<code>LentilleDataResponse&lt;PostListData&gt;</code>)</td>
1717
</tr>
1818
</table>
1919

@@ -47,7 +47,7 @@
4747
</tr>
4848
<tr>
4949
<th align="right">响应主体</th>
50-
<td><code>application/json</code> (<code>DataResponse&lt;PostData&gt;</code>)</td>
50+
<td><code>application/json</code> (<code>LentilleDataResponse&lt;PostData&gt;</code>)</td>
5151
</tr>
5252
</table>
5353

luogu-api.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,12 +875,14 @@ export interface PostSummary {
875875
forum: Forum;
876876
topped: boolean;
877877
valid: boolean;
878+
locked: boolean;
878879
replyCount: number;
879880
recentReply: ReplySummary | false;
880881
}
881882

882883
export interface Post extends PostSummary {
883884
content: string;
885+
pinnedReply: Reply | null;
884886
}
885887

886888
export interface ReplySummary {
@@ -938,11 +940,11 @@ export interface UserSummary {
938940
}
939941

940942
export interface User extends UserSummary {
941-
blogAddress: string | null;
942943
followingCount: number;
943944
followerCount: number;
944945
ranking: number | null;
945-
eloValue?: number | null;
946+
eloValue: number | null;
947+
blogAddress: string | null;
946948
}
947949

948950
export interface UserDetails extends User {

0 commit comments

Comments
 (0)