article_provider.dart 262 B

12345678910
  1. import 'package:shuqi/public.dart';
  2. class ArticleProvider {
  3. static Future<Article> fetchArticle(int articleId) async {
  4. var response = await Request.get(action: 'article_$articleId');
  5. var article = Article.fromJson(response);
  6. return article;
  7. }
  8. }