mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
27 lines
589 B
Dart
27 lines
589 B
Dart
import 'package:PiliPlus/http/api.dart';
|
|
import 'package:PiliPlus/http/init.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'],
|
|
};
|
|
}
|
|
}
|
|
}
|