mirrored_repositories/GetXStudy/lib/pages/my
import 'package:getx_study/base/interface.dart';
import 'package:getx_study/entity/base_entity.dart';
import 'package:getx_study/entity/article_info_entity.dart';
import 'package:getx_study/entity/page_entity.dart';
import 'package:getx_study/http_util/request.dart' as http;
import 'package:getx_study/http_util/api.dart';

class MyCollectRepository extends IRepository {
  Future<BaseEntity<PageEntity<List<ArticleInfoDatas>>>> getCollectArticleList(
          {required int page}) =>
      http.Request.get(
          api: "${Api.getCollectArticleList}${page.toString()}/json");

  Future<BaseEntity<Object?>> unCollectAction({required int originId}) =>
      http.Request.post(
          api: "${Api.postUnCollectArticle}${originId.toString()}/json");
}
