mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
12 lines
259 B
Dart
12 lines
259 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('$baseUrl/update.json');
|
|
return AppUpdate.fromJson(resp.data);
|
|
}
|
|
}
|