mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
opt: type & grpc message (#842)
* opt: grpc type * opt: grpc message * opt: http type
This commit is contained in:
committed by
GitHub
parent
7b4f08bb05
commit
024e74115e
@@ -8,8 +8,8 @@ class DmGrpc {
|
||||
required int cid,
|
||||
required int segmentIndex,
|
||||
int type = 1,
|
||||
}) async {
|
||||
final res = await GrpcRepo.request(
|
||||
}) {
|
||||
return GrpcRepo.request(
|
||||
GrpcUrl.dmSegMobile,
|
||||
DmSegMobileReq(
|
||||
oid: Int64(cid),
|
||||
@@ -18,10 +18,5 @@ class DmGrpc {
|
||||
),
|
||||
DmSegMobileReply.fromBuffer,
|
||||
);
|
||||
if (res['status']) {
|
||||
return LoadingState.success(res['data']);
|
||||
} else {
|
||||
return const Error('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user