feat:更新个人主页模块

This commit is contained in:
2025-11-24 19:56:13 +08:00
parent 97e7a6f44b
commit 8cff5228ae
18 changed files with 443 additions and 197 deletions

View File

@@ -24,6 +24,13 @@ Future<List<Moment>> queryMomentListApi() {
);
}
Future<List<Moment>> queryMomentListByUserIdApi(int userId) {
return httpUtil.get<List<Moment>>(
"/moment/$userId",
converter: (data) => convertList<Moment>(data, Moment.fromJson),
);
}
Future<PageMoment> queryMomentByPageApi(int currentPage, int pageSize) {
return httpUtil.get<PageMoment>(
"/moment/page",