12345678910111213141516171819202122232425 |
- import 'package:dio/dio.dart';
- import 'package:farmer_client/utils/Request.dart';
-
- import 'showError.dart';
-
- Future getNewsList(params) async {
- return request('/news', options: Options(method: 'GET'),queryParameters: params)
- .catchError(showError);
- }
-
-
- Future getNewsInfo(String id) async {
- return request(
- '/news/$id',
- options: Options(method: 'GET'),
- ).catchError(showError);
- }
|