mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 13:55:54 +08:00
@@ -1,8 +1,8 @@
|
||||
import 'package:PiliPlus/http/bangumi.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/http/pgc.dart';
|
||||
import 'package:PiliPlus/models/common/pgc_review_type.dart';
|
||||
import 'package:PiliPlus/models/pgc/pgc_review/data.dart';
|
||||
import 'package:PiliPlus/models/pgc/pgc_review/list.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_review/data.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_review/list.dart';
|
||||
import 'package:PiliPlus/pages/common/common_list_controller.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -51,7 +51,7 @@ class PgcReviewController
|
||||
}
|
||||
|
||||
@override
|
||||
Future<LoadingState<PgcReviewData>> customGetData() => BangumiHttp.pgcReview(
|
||||
Future<LoadingState<PgcReviewData>> customGetData() => PgcHttp.pgcReview(
|
||||
type: type,
|
||||
mediaId: mediaId,
|
||||
next: next,
|
||||
@@ -59,7 +59,7 @@ class PgcReviewController
|
||||
);
|
||||
|
||||
Future<void> onLike(int index, bool isLike, reviewId) async {
|
||||
var res = await BangumiHttp.pgcReviewLike(
|
||||
var res = await PgcHttp.pgcReviewLike(
|
||||
mediaId: mediaId,
|
||||
reviewId: reviewId,
|
||||
);
|
||||
@@ -79,7 +79,7 @@ class PgcReviewController
|
||||
}
|
||||
|
||||
Future<void> onDislike(int index, bool isDislike, reviewId) async {
|
||||
var res = await BangumiHttp.pgcReviewDislike(
|
||||
var res = await PgcHttp.pgcReviewDislike(
|
||||
mediaId: mediaId,
|
||||
reviewId: reviewId,
|
||||
);
|
||||
@@ -99,7 +99,7 @@ class PgcReviewController
|
||||
}
|
||||
|
||||
Future<void> onDel(int index, int? reviewId) async {
|
||||
var res = await BangumiHttp.pgcReviewDel(
|
||||
var res = await PgcHttp.pgcReviewDel(
|
||||
mediaId: mediaId,
|
||||
reviewId: reviewId,
|
||||
);
|
||||
|
||||
@@ -8,7 +8,7 @@ import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/common/image_type.dart';
|
||||
import 'package:PiliPlus/models/common/pgc_review_type.dart';
|
||||
import 'package:PiliPlus/models/pgc/pgc_review/list.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_review/list.dart';
|
||||
import 'package:PiliPlus/pages/pgc_review/child/controller.dart';
|
||||
import 'package:PiliPlus/pages/pgc_review/post/view.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:PiliPlus/common/widgets/button/icon_button.dart';
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/http/bangumi.dart';
|
||||
import 'package:PiliPlus/http/pgc.dart';
|
||||
import 'package:PiliPlus/pages/common/common_collapse_slide_page.dart';
|
||||
import 'package:PiliPlus/utils/storage.dart' show Accounts;
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -212,7 +212,7 @@ class _PgcReviewPostPanelState
|
||||
|
||||
Future<void> _onPost() async {
|
||||
if (_isMod) {
|
||||
var res = await BangumiHttp.pgcReviewMod(
|
||||
var res = await PgcHttp.pgcReviewMod(
|
||||
mediaId: widget.mediaId,
|
||||
score: _score.value * 2,
|
||||
content: _controller.text,
|
||||
@@ -230,7 +230,7 @@ class _PgcReviewPostPanelState
|
||||
SmartDialog.showToast('账号未登录');
|
||||
return;
|
||||
}
|
||||
var res = await BangumiHttp.pgcReviewPost(
|
||||
var res = await PgcHttp.pgcReviewPost(
|
||||
mediaId: widget.mediaId,
|
||||
score: _score.value * 2,
|
||||
content: _controller.text,
|
||||
|
||||
Reference in New Issue
Block a user