first commit
This commit is contained in:
1
滴滴淘/ddt_flutter/lib/service/.pydio
Normal file
1
滴滴淘/ddt_flutter/lib/service/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
f37eb8c2-4099-4d47-9831-8291d72c4472
|
||||
1
滴滴淘/ddt_flutter/lib/service/help.md
Executable file
1
滴滴淘/ddt_flutter/lib/service/help.md
Executable file
@@ -0,0 +1 @@
|
||||
# 数据请求的具体方法,和view中页面分开,更好解耦
|
||||
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