forked from lxm_tools/flutter-picgo
feature:封装api请求类
This commit is contained in:
5
lib/api/github_api.dart
Normal file
5
lib/api/github_api.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
class GithubApi {
|
||||
|
||||
static const String BASE_URL = 'https://api.github.com/';
|
||||
|
||||
}
|
||||
16
lib/utils/net.dart
Normal file
16
lib/utils/net.dart
Normal 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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user