Last updated:
0 purchases
networks library
由于此版本的代码太低 只能通过插件方式依赖,不然2.0后的空安全全部都改成空安全很费事。
TODO: xxxxx.
Getting started #
TODO:
#
to /example
/*
*success 接口成功回调
error 接口错误回调,比如断网,服务异常
params get 或者post 传递的参数
headers 每个接口单独传递头部参数
*/
static void requestSchoolList({required RequestSuccess success, required RequestError error, required Map<String, dynamic> params}) {
BaseService.request(
baseUrl: 服务器地址,
path: 接口地址,
method: RequestMethod.get,
params: params,
success: (response) {
try {
success(ShchoolModel.fromJson(response));
} on DioError catch (e) {
error(e);
}
},
error: error);
}
copied to clipboard
Additional information #
TODO:
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.