first commit
This commit is contained in:
16
滴滴淘/ddt_flutter/lib/service/service.dart
Executable file
16
滴滴淘/ddt_flutter/lib/service/service.dart
Executable file
@@ -0,0 +1,16 @@
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user