feat:增加回到顶部功能

This commit is contained in:
2025-07-24 16:50:50 +08:00
parent 7da3ec9507
commit 502bb9df52
9 changed files with 254 additions and 62 deletions

View File

@@ -21,6 +21,14 @@ Future<List<Moment>> queryMomentListApi() {
);
}
Future<PageMoment> queryMomentByPageApi(int currentPage, int pageSize) {
return HttpUtil().get<PageMoment>(
"/moment/page",
queryParameters: {"currentPage": currentPage, "pageSize": pageSize},
converter: (data) => PageMoment.fromJson(data),
);
}
Future<bool> addMomentCommentApi(int id, String content) {
return HttpUtil().post<bool>("/moment/$id/comment", data: content);
}