16 lines
380 B
Dart
Executable File
16 lines
380 B
Dart
Executable File
import 'package:flutter_app/http/config.dart';
|
|
import 'package:flutter_app/http/index.dart';
|
|
import 'package:flutter_app/model/IndexModel.dart';
|
|
|
|
class ServiceMethods {
|
|
Http _http;
|
|
ServiceMethods() {
|
|
this._http = new Http();
|
|
}
|
|
|
|
/// 获取视频数据
|
|
Future getImageList(data) async {
|
|
return new Index.fromJson(await this._http.get(config.testUrl, data));
|
|
}
|
|
|
|
} |