get<T> method
Implementation
Future<BaseModel> get<T>(
String path, {
dynamic tag,
Map<String, dynamic>? params,
Object? data,
bool? loading,
Options? options,
CancelToken? cancelToken,
}) async {
assert(_singleton != null, '请先调用 initialize');
if (hasNetWork) return notNetWorkModel;
_addLoading(loading);
final res = await dio.get<T>(path,
data: data,
options: _mergeOptions(options, path),
cancelToken: cancelToken,
params: baseDioOptions.extraParams?.call(path, params) ?? params);
return _response(res, tag);
}