mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
23 lines
499 B
Dart
23 lines
499 B
Dart
import 'index.dart';
|
|
|
|
class CommonHttp {
|
|
static Future unReadDynamic() async {
|
|
var res = await Request().get(Api.getUnreadDynamic, queryParameters: {
|
|
'alltype_offset': 0,
|
|
'video_offset': 0,
|
|
'article_offset': 0,
|
|
});
|
|
if (res.data['code'] == 0) {
|
|
return {
|
|
'status': true,
|
|
'data': res.data['data']['update_info']['item']['count']
|
|
};
|
|
} else {
|
|
return {
|
|
'status': false,
|
|
'msg': res.data['message'],
|
|
};
|
|
}
|
|
}
|
|
}
|