opt: type & grpc message (#842)

* opt: grpc type

* opt: grpc message

* opt: http type
This commit is contained in:
My-Responsitories
2025-05-10 12:40:27 +08:00
committed by GitHub
parent 7b4f08bb05
commit 024e74115e
21 changed files with 556 additions and 246 deletions

View File

@@ -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('');
}
}
}