mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-11 11:50:12 +08:00
mod: update proto
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -2,7 +2,6 @@ import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:PiliPlus/common/constants.dart';
|
||||
import 'package:PiliPlus/grpc/grpc_repo.dart';
|
||||
import 'package:PiliPlus/http/api.dart';
|
||||
import 'package:PiliPlus/http/constants.dart';
|
||||
import 'package:PiliPlus/http/init.dart';
|
||||
@@ -49,17 +48,17 @@ class MemberHttp {
|
||||
};
|
||||
}
|
||||
|
||||
static Future<LoadingState> spaceDynamic({
|
||||
required int mid,
|
||||
required int page,
|
||||
}) async {
|
||||
dynamic result = await GrpcRepo.dynSpace(uid: mid, page: page);
|
||||
if (result['status']) {
|
||||
return LoadingState.success(result['data']);
|
||||
} else {
|
||||
return LoadingState.error(result['msg']);
|
||||
}
|
||||
}
|
||||
// static Future<LoadingState> spaceDynamic({
|
||||
// required int mid,
|
||||
// required int page,
|
||||
// }) async {
|
||||
// dynamic result = await GrpcRepo.dynSpace(uid: mid, page: page);
|
||||
// if (result['status']) {
|
||||
// return LoadingState.success(result['data']);
|
||||
// } else {
|
||||
// return LoadingState.error(result['msg']);
|
||||
// }
|
||||
// }
|
||||
|
||||
static Future<LoadingState<SpaceArticleData>> spaceArticle({
|
||||
required int mid,
|
||||
|
||||
Reference in New Issue
Block a user