mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
12 lines
266 B
Dart
12 lines
266 B
Dart
import 'package:dio/dio.dart';
|
|
|
|
import '../model/app/update.dart';
|
|
import '../res/url.dart';
|
|
|
|
class AppService {
|
|
Future<AppUpdate> getUpdate() async {
|
|
final resp = await Dio().get('${Urls.resBase}/update.json');
|
|
return AppUpdate.fromJson(resp.data);
|
|
}
|
|
}
|