1
This commit is contained in:
@@ -3,6 +3,7 @@ using Assets.MyGame.Scripts.Net.APIRequest.Objs;
|
||||
using Assets.MyGame.Scripts.Net.APIRequest.Params;
|
||||
using Assets.MyGame.Scripts.Net.APIResponses;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net
|
||||
{
|
||||
@@ -30,6 +31,16 @@ namespace Assets.MyGame.Scripts.Net
|
||||
APIManager.Response<SafeBoxInfo>(APIType.Hall_GetSafeBox, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 取出保险箱(GET,带参数)
|
||||
/// 参数:gold(取出数量)、password(保险箱密码)
|
||||
/// 返回:SafeBoxInfo(取款后保险箱信息)
|
||||
/// </summary>
|
||||
public static void GetSafeBox(GetSafeBoxInfoParam req, Action<SafeBoxInfo> callback)
|
||||
{
|
||||
APIManager.Response<SafeBoxInfo>(APIType.Hall_GetSafeBox, req, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置保险箱密码(POST)
|
||||
/// 参数:用户ID、新密码
|
||||
@@ -220,6 +231,16 @@ namespace Assets.MyGame.Scripts.Net
|
||||
APIManager.Response<ScratchCardResult>(APIType.Hall_ScratchCardDraw, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取资产变动记录(GET)
|
||||
/// 参数:keyWord/pageIndex/pageSize/userId/type/source/currencyType
|
||||
/// 返回:List<UserRewardDto>
|
||||
/// </summary>
|
||||
public static void GetUserRewardList(GetUserRewardListObj req, Action<List<UserRewardDto>> callback)
|
||||
{
|
||||
APIManager.Response<List<UserRewardDto>>(APIType.Hall_GetUserRewardList, req, callback);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user