feature:封装api请求类

This commit is contained in:
hackycy
2020-06-17 10:57:06 +08:00
parent 0aca6d9d56
commit 1a41e037f5
2 changed files with 21 additions and 0 deletions

16
lib/utils/net.dart Normal file
View File

@@ -0,0 +1,16 @@
import 'dart:async';
// import 'dart:io';
// import 'package:dio/dio.dart';
Map<String, dynamic> optHeader = {
'accept-language': 'zh-cn',
'content-type': 'application/json'
};
class NetUtil {
static Future get(String url, [Map<String, dynamic> params]) async {
}
}