1
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Assets.MyGame.Scripts.Net.API;
|
||||
using Assets.MyGame.Scripts.Net.API.GameConfig_SubClass;
|
||||
using Assets.MyGame.Scripts.Net.APIRequest.Params;
|
||||
using Assets.MyGame.Scripts.Net.APIResponses;
|
||||
using System;
|
||||
@@ -8,7 +9,7 @@ namespace Assets.MyGame.Scripts.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// 补充请求方法:以下接口暂未接入业务,仅注册调用入口。
|
||||
/// 字段类型为推测,接入业务前请按后端实际返回再调整。
|
||||
/// 响应类型已按 2026-09-02 后端 swagger(/swagger/v1/swagger.json)校对同步。
|
||||
/// </summary>
|
||||
public static partial class APIRequestList
|
||||
{
|
||||
@@ -39,31 +40,31 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}
|
||||
|
||||
/// <summary>获取捕鱼返利信息(GET /api/User/GetFishingReturnInfo)</summary>
|
||||
public static void GetFishingReturnInfo(Action<FishingReturnInfoResponse> callback)
|
||||
public static void GetFishingReturnInfo(Action<FishingReturnDto> callback)
|
||||
{
|
||||
APIManager.Response<FishingReturnInfoResponse>(APIType.User_GetFishingReturnInfo, callback);
|
||||
APIManager.Response<FishingReturnDto>(APIType.User_GetFishingReturnInfo, callback);
|
||||
}
|
||||
|
||||
/// <summary>领取捕鱼返利金币(GET /api/User/ClaimFishingReturn)</summary>
|
||||
public static void ClaimFishingReturn(Action<ClaimFishingReturnResponse> callback)
|
||||
public static void ClaimFishingReturn(Action<ClaimFishingReturnDto> callback)
|
||||
{
|
||||
APIManager.Response<ClaimFishingReturnResponse>(APIType.User_ClaimFishingReturn, callback);
|
||||
APIManager.Response<ClaimFishingReturnDto>(APIType.User_ClaimFishingReturn, callback);
|
||||
}
|
||||
|
||||
// ---------------- ActivityConfig ----------------
|
||||
|
||||
/// <summary>奖池抽奖活动配置(GET /api/ActivityConfig/lotteryConfig)</summary>
|
||||
public static void GetLotteryActivityConfig(Action<LotteryConfigResponse> callback)
|
||||
public static void GetLotteryActivityConfig(Action<LotteryActivityConfig> callback)
|
||||
{
|
||||
APIManager.Response<LotteryConfigResponse>(APIType.ActivityConfig_LotteryConfig, callback);
|
||||
APIManager.Response<LotteryActivityConfig>(APIType.ActivityConfig_LotteryConfig, callback);
|
||||
}
|
||||
|
||||
// ---------------- Lottery ----------------
|
||||
|
||||
/// <summary>抽奖配置(GET /api/Lottery/Config)</summary>
|
||||
public static void GetLotteryConfig(Action<LotteryConfigResponse> callback)
|
||||
public static void GetLotteryConfig(Action<LotteryActivityConfig> callback)
|
||||
{
|
||||
APIManager.Response<LotteryConfigResponse>(APIType.Lottery_Config, callback);
|
||||
APIManager.Response<LotteryActivityConfig>(APIType.Lottery_Config, callback);
|
||||
}
|
||||
|
||||
/// <summary>抽奖(GET /api/Lottery/Draw)</summary>
|
||||
@@ -73,37 +74,37 @@ namespace Assets.MyGame.Scripts.Net
|
||||
}
|
||||
|
||||
/// <summary>用户抽奖状态(GET /api/Lottery/UserStatus)</summary>
|
||||
public static void GetLotteryUserStatus(Action<LotteryUserStatusResponse> callback)
|
||||
public static void GetLotteryUserStatus(Action<LotteryUserStatus> callback)
|
||||
{
|
||||
APIManager.Response<LotteryUserStatusResponse>(APIType.Lottery_UserStatus, callback);
|
||||
APIManager.Response<LotteryUserStatus>(APIType.Lottery_UserStatus, callback);
|
||||
}
|
||||
|
||||
/// <summary>已抽奖项(GET /api/Lottery/DrawnPrizes)</summary>
|
||||
public static void GetLotteryDrawnPrizes(Action<List<LotteryDrawnPrizeItem>> callback)
|
||||
/// <summary>已抽奖项ID列表(GET /api/Lottery/DrawnPrizes)</summary>
|
||||
public static void GetLotteryDrawnPrizes(Action<List<string>> callback)
|
||||
{
|
||||
APIManager.Response<List<LotteryDrawnPrizeItem>>(APIType.Lottery_DrawnPrizes, callback);
|
||||
APIManager.Response<List<string>>(APIType.Lottery_DrawnPrizes, callback);
|
||||
}
|
||||
|
||||
// ---------------- SummonCard ----------------
|
||||
|
||||
/// <summary>使用召唤卡(GET /api/SummonCard/use)</summary>
|
||||
public static void UseSummonCard(SummonCardUseParam req, Action<SummonCardUseResponse> callback)
|
||||
/// <summary>使用召唤卡(GET /api/SummonCard/use,返回字符串消息)</summary>
|
||||
public static void UseSummonCard(SummonCardUseParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<SummonCardUseResponse>(APIType.SummonCard_Use, req, callback);
|
||||
APIManager.Response<string>(APIType.SummonCard_Use, req, callback);
|
||||
}
|
||||
|
||||
// ---------------- Dict ----------------
|
||||
|
||||
/// <summary>字典单条查询(GET /api/Dict/GetByCode)</summary>
|
||||
public static void GetDictByCode(DictGetByCodeParam req, Action<DictItem> callback)
|
||||
public static void GetDictByCode(DictGetByCodeParam req, Action<SystemDic> callback)
|
||||
{
|
||||
APIManager.Response<DictItem>(APIType.Dict_GetByCode, req, callback);
|
||||
APIManager.Response<SystemDic>(APIType.Dict_GetByCode, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>字典列表查询(GET /api/Dict/GetListByCode)</summary>
|
||||
public static void GetDictListByCode(DictGetListByCodeParam req, Action<List<DictItem>> callback)
|
||||
public static void GetDictListByCode(DictGetListByCodeParam req, Action<List<SystemDic>> callback)
|
||||
{
|
||||
APIManager.Response<List<DictItem>>(APIType.Dict_GetListByCode, req, callback);
|
||||
APIManager.Response<List<SystemDic>>(APIType.Dict_GetListByCode, req, callback);
|
||||
}
|
||||
|
||||
// ---------------- Hall ----------------
|
||||
|
||||
Reference in New Issue
Block a user