92 lines
2.8 KiB
Dart
92 lines
2.8 KiB
Dart
import 'package:aslan/chatvibe_domain/models/res/login_res.dart';
|
|
|
|
import 'package:aslan/chatvibe_domain/models/res/country_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_game_ranking_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_get_list_game_config_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_google_pay_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_index_banner_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_level_config_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_product_config_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_start_page_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_top_four_with_reward_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/version_manage_lates_review_res.dart';
|
|
import 'package:aslan/chatvibe_domain/models/res/at_version_manage_latest_res.dart';
|
|
|
|
abstract class ChatVibeConfigRepository {
|
|
///国家列表
|
|
Future<CountryRes> loadCountry();
|
|
|
|
///推荐国家列表
|
|
Future<CountryRes> loadTopSix();
|
|
|
|
///app启动页.
|
|
Future<List<ATStartPageRes>> getStartPage();
|
|
|
|
///系统参数配置列表.
|
|
Future<CountryRes> getConfig();
|
|
|
|
///最近活动通知列表.
|
|
Future<CountryRes> getNoticeMessage();
|
|
|
|
///房间内-快捷入口-游戏.
|
|
Future<CountryRes> getShortcutGame();
|
|
|
|
///房间内-游戏列表配置.
|
|
Future<List<ATGetListGameConfigRes>> getListGameConfig({
|
|
String? roomId,
|
|
String? category,
|
|
});
|
|
|
|
///房间内-sud游戏.
|
|
Future<CountryRes> getSudCode();
|
|
|
|
///匹配-游戏列表配置.
|
|
Future<CountryRes> getGameConfig();
|
|
|
|
///获得客服.
|
|
Future<CountryRes> getCustomerService();
|
|
|
|
///获取平台banner.
|
|
Future<List<ATIndexBannerRes>> getBanner({List<String>?types});
|
|
|
|
///获取商品配置
|
|
Future<List<ATProductConfigRes>> productConfig();
|
|
|
|
///谷歌内购
|
|
Future<ATGooglePayRes> googlePay(
|
|
String product,
|
|
String signature,
|
|
String purchaseData, {
|
|
String? friendId,
|
|
});
|
|
|
|
///苹果内购
|
|
Future<ATGooglePayRes> applePay(
|
|
String product,
|
|
String receipt,
|
|
String transaction, {
|
|
String? friendId,
|
|
});
|
|
|
|
///等级资源
|
|
Future<ATLevelConfigRes> configLevel();
|
|
|
|
///热门游戏排行榜
|
|
Future<ATGameRankingRes> gameRanking(int current,String periodType, {int? size = 20});
|
|
|
|
///查询游戏排行榜前四名
|
|
Future<List<ATTopFourWithRewardRes>> topFourWithReward();
|
|
|
|
///获取APP最新版本
|
|
Future<ATVersionManageLatestRes> versionManageLatest();
|
|
|
|
///获取最新及正在审核版本
|
|
Future<VersionManageLatesReviewRes> versionManageLatestReview();
|
|
|
|
///获得客服
|
|
Future<ChatVibeUserProfile> customerService();
|
|
|
|
///查询KING_GAMES_DAILY日榜前三名
|
|
Future<List<ATTopFourWithRewardRes>> kingGamesDailyTopThree();
|
|
}
|