143 lines
4.4 KiB
C#
143 lines
4.4 KiB
C#
using System;
|
|||
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
namespace Assets.MyGame.Scripts.Net.APIResponses
|
||
|
|
{
|
||
|
|
// ============================================================
|
||
|
|
// 补充响应类:以下接口暂未接入业务,但已注册到 APIManager,
|
||
|
|
// 方便后续快速接入。按 swagger 路径分组放置。
|
||
|
|
// 字段类型为推测,接入业务前请按后端实际返回再调整。
|
||
|
|
// ============================================================
|
||
|
|
|
||
|
|
// ---------------- /api/User/GetUserAssets ----------------
|
||
|
|
/// <summary>用户资产 + 背包统一响应</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class UserAssetsResponse
|
||
|
|
{
|
||
|
|
public string userId;
|
||
|
|
public long gold;
|
||
|
|
public int diamond;
|
||
|
|
public long safeBoxGold;
|
||
|
|
public int level;
|
||
|
|
public long exp;
|
||
|
|
public int vipLevel;
|
||
|
|
public List<PropInfo> props;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/User/GetFishingReturnInfo ----------------
|
||
|
|
/// <summary>捕鱼返利信息</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class FishingReturnInfoResponse
|
||
|
|
{
|
||
|
|
/// <summary>待领取返利金币</summary>
|
||
|
|
public long pendingGold;
|
||
|
|
/// <summary>累计返利金币</summary>
|
||
|
|
public long totalGold;
|
||
|
|
/// <summary>上次结算时间</summary>
|
||
|
|
public long lastSettleTime;
|
||
|
|
/// <summary>是否可领取</summary>
|
||
|
|
public bool canClaim;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/User/ClaimFishingReturn ----------------
|
||
|
|
/// <summary>领取捕鱼返利响应</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class ClaimFishingReturnResponse
|
||
|
|
{
|
||
|
|
/// <summary>本次领取金币</summary>
|
||
|
|
public long claimedGold;
|
||
|
|
/// <summary>领取时间</summary>
|
||
|
|
public long claimTime;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/ActivityConfig/lotteryConfig & /api/Lottery/Config ----------------
|
||
|
|
/// <summary>抽奖活动配置</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class LotteryConfigResponse
|
||
|
|
{
|
||
|
|
public int lotteryId;
|
||
|
|
public string name;
|
||
|
|
public long startTime;
|
||
|
|
public long endTime;
|
||
|
|
public List<LotteryPrizeInfo> prizes;
|
||
|
|
}
|
||
|
|
|
||
|
|
[Serializable]
|
||
|
|
public class LotteryPrizeInfo
|
||
|
|
{
|
||
|
|
public int prizeId;
|
||
|
|
public string prizeName;
|
||
|
|
public int prizeType; // 1=金币 2=钻石 3=道具
|
||
|
|
public int count;
|
||
|
|
public int weight; // 权重
|
||
|
|
public string icon;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/Lottery/Draw ----------------
|
||
|
|
/// <summary>抽奖结果</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class LotteryDrawResponse
|
||
|
|
{
|
||
|
|
public int prizeId;
|
||
|
|
public string prizeName;
|
||
|
|
public int prizeType;
|
||
|
|
public int count;
|
||
|
|
public long drawTime;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/Lottery/UserStatus ----------------
|
||
|
|
/// <summary>用户抽奖状态</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class LotteryUserStatusResponse
|
||
|
|
{
|
||
|
|
public int lotteryId;
|
||
|
|
public int freeCount; // 剩余免费次数
|
||
|
|
public int paidCount; // 剩余付费次数
|
||
|
|
public long lastDrawTime;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/Lottery/DrawnPrizes ----------------
|
||
|
|
/// <summary>已抽奖项记录</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class LotteryDrawnPrizeItem
|
||
|
|
{
|
||
|
|
public int prizeId;
|
||
|
|
public string prizeName;
|
||
|
|
public int prizeType;
|
||
|
|
public int count;
|
||
|
|
public long drawTime;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/SummonCard/use ----------------
|
||
|
|
/// <summary>使用召唤卡响应</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class SummonCardUseResponse
|
||
|
|
{
|
||
|
|
public bool success;
|
||
|
|
public string message;
|
||
|
|
public List<PropInfo> drops; // 掉落道具列表
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/Dict/GetByCode ----------------
|
||
|
|
/// <summary>字典单条</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class DictItem
|
||
|
|
{
|
||
|
|
public string code;
|
||
|
|
public string name;
|
||
|
|
public string value;
|
||
|
|
public string remark;
|
||
|
|
}
|
||
|
|
|
||
|
|
// ---------------- /api/Hall/GetBattleOrderLevelStatus ----------------
|
||
|
|
/// <summary>战令各等级奖励领取状态</summary>
|
||
|
|
[Serializable]
|
||
|
|
public class BattleOrderLevelStatusResponse
|
||
|
|
{
|
||
|
|
public int currentLevel;
|
||
|
|
public List<int> normalReceivedLevels; // 普通奖励已领取等级
|
||
|
|
public List<int> luxuryReceivedLevels; // 豪华奖励已领取等级
|
||
|
|
public List<int> supremeReceivedLevels; // 至尊奖励已领取等级
|
||
|
|
}
|
||
|
|
}
|