mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
load illust with id; context menu
This commit is contained in:
@@ -391,4 +391,13 @@ class Network {
|
||||
return Res.fromErrorRes(res);
|
||||
}
|
||||
}
|
||||
|
||||
Future<Res<Illust>> getIllustByID(String id) async {
|
||||
var res = await apiGet("/v1/illust/detail?illust_id=$id");
|
||||
if (res.success) {
|
||||
return Res(Illust.fromJson(res.data["illust"]));
|
||||
} else {
|
||||
return Res.error(res.errorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user