using System; using System.Collections.Generic; namespace Assets.MyGame.Scripts.Net.API.GameConfig_SubClass { [Serializable] public class LotteryActivityConfig { public string activityName; public bool isOpen; public long startTime; public long endTime; public List pools; public List costs; public int userMaxDraw; } [Serializable] public class LotteryPoolLevel { public string level; public int count; public int weight; public List prizeList; } [Serializable] public class LotteryPrize { /// 奖项唯一标识ID(如"A001"、"B002",用于唯一性控制:同一用户不能重复抽中) public string prizeId; /// 奖项名称(用于前端展示) public string name; /// 奖项图标地址 public string icon; /// 奖励类型 1=金币,2=钻石,3=道具,4=道具碎片 public int type; /// 奖励数量 public long count; /// 道具/碎片编号(type=3或4时使用) public string otherId; /// 道具详情 public BaseProduct product; /// 在该等级内的抽中奖权重 public int weight; /// 该奖项总库存数量(全局,0=无限库存) public int totalCount; /// 已抽中数量(运行时统计,用于判断库存是否充足) public int drawnCount; } }