feat:更新个人主页模块
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user