namespace HoneyBox.Model.Models.Welfare;
///
/// 福利屋列表请求
///
public class WelfareListRequest
{
///
/// 类型: 1=进行中, 3=已结束
///
public int Type { get; set; } = 1;
///
/// 页码
///
public int Page { get; set; } = 1;
///
/// 每页数量
///
public int Limit { get; set; } = 15;
}
///
/// 福利屋列表响应
///
public class WelfareListResponse
{
///
/// 福利屋列表
///
public List List { get; set; } = new();
///
/// 最后一页页码
///
public int LastPage { get; set; }
///
/// 总记录数
///
public int Total { get; set; }
}
///
/// 福利屋项DTO
///
public class WelfareItemDto
{
///
/// 商品ID
///
public int Id { get; set; }
///
/// 标题
///
public string Title { get; set; } = string.Empty;
///
/// 图片
///
public string Imgurl { get; set; } = string.Empty;
///
/// 价格
///
public decimal Price { get; set; }
///
/// 类型
///
public int Type { get; set; }
///
/// 是否新品
///
public int NewIs { get; set; }
///
/// 全局限购
///
public int QuanjuXiangou { get; set; }
///
/// 抽奖限制
///
public int ChoujiangXianzhi { get; set; }
///
/// 商品描述
///
public string GoodsDescribe { get; set; } = string.Empty;
///
/// 是否已开奖
///
public int IsOpen { get; set; }
///
/// 解锁金额
///
public decimal UnlockAmount { get; set; }
///
/// 参与人数
///
public int JoinCount { get; set; }
///
/// 开始时间
///
public string FlwStartTime { get; set; } = string.Empty;
///
/// 结束时间
///
public string FlwEndTime { get; set; } = string.Empty;
///
/// 开奖时间
///
public string OpenTime { get; set; } = string.Empty;
///
/// 奖品列表
///
public List Goodslist { get; set; } = new();
}
///
/// 福利屋奖品列表项DTO
///
public class WelfareGoodsListItemDto
{
///
/// 奖品标题
///
public string Title { get; set; } = string.Empty;
///
/// 奖品图片
///
public string Imgurl { get; set; } = string.Empty;
///
/// 库存
///
public int Stock { get; set; }
///
/// 价格
///
public decimal Price { get; set; }
///
/// 市场回收金额
///
public decimal ScMoney { get; set; }
}
///
/// 福利屋详情请求
///
public class WelfareDetailRequest
{
///
/// 商品ID
///
public int GoodsId { get; set; }
}
///
/// 福利屋详情响应
///
public class WelfareDetailResponse
{
///
/// 商品信息
///
public WelfareGoodsDto Goods { get; set; } = new();
///
/// 奖品列表
///
public List Goodslist { get; set; } = new();
///
/// 参与人数
///
public int JoinCount { get; set; }
///
/// 当前时间
///
public string CurrentTime { get; set; } = string.Empty;
///
/// 用户参与次数
///
public int UserCount { get; set; }
///
/// 用户在活动期间的消费数据
///
public UserConsumptionDto UserConsumption { get; set; } = new();
///
/// 活动状态
///
public string Status { get; set; } = string.Empty;
///
/// 状态文本
///
public string StatusText { get; set; } = string.Empty;
}
///
/// 用户消费数据DTO
///
public class UserConsumptionDto
{
///
/// 消费总额
///
public decimal TotalAmount { get; set; }
///
/// 订单数量
///
public int OrderCount { get; set; }
}
///
/// 福利屋商品DTO
///
public class WelfareGoodsDto
{
///
/// 商品ID
///
public int Id { get; set; }
///
/// 标题
///
public string Title { get; set; } = string.Empty;
///
/// 图片
///
public string Imgurl { get; set; } = string.Empty;
///
/// 详情图片
///
public string ImgurlDetail { get; set; } = string.Empty;
///
/// 价格
///
public decimal Price { get; set; }
///
/// 类型
///
public int Type { get; set; }
///
/// 是否新品
///
public int NewIs { get; set; }
///
/// 全局限购
///
public int QuanjuXiangou { get; set; }
///
/// 抽奖限制
///
public int ChoujiangXianzhi { get; set; }
///
/// 商品描述
///
public string GoodsDescribe { get; set; } = string.Empty;
///
/// 是否已开奖
///
public int IsOpen { get; set; }
///
/// 解锁金额
///
public decimal UnlockAmount { get; set; }
///
/// 排序
///
public int Sort { get; set; }
///
/// 开始时间
///
public string FlwStartTime { get; set; } = string.Empty;
///
/// 结束时间
///
public string FlwEndTime { get; set; } = string.Empty;
///
/// 开奖时间
///
public string OpenTime { get; set; } = string.Empty;
}
///
/// 福利屋奖品DTO
///
public class WelfarePrizeDto
{
///
/// 奖品ID
///
public int Id { get; set; }
///
/// 奖品名称
///
public string Title { get; set; } = string.Empty;
///
/// 奖品图片
///
public string Imgurl { get; set; } = string.Empty;
///
/// 奖品详情图片
///
public string ImgurlDetail { get; set; } = string.Empty;
///
/// 库存
///
public int Stock { get; set; }
///
/// 价格
///
public decimal Price { get; set; }
///
/// 市场回收金额
///
public decimal ScMoney { get; set; }
///
/// 奖品等级ID
///
public int ShangId { get; set; }
///
/// 剩余库存
///
public int SurplusStock { get; set; }
///
/// 排序
///
public int Sort { get; set; }
///
/// 奖品等级标题
///
public string ShangTitle { get; set; } = string.Empty;
///
/// 奖品等级颜色
///
public string ShangColor { get; set; } = string.Empty;
}
///
/// 参与者列表请求
///
public class ParticipantsRequest
{
///
/// 商品ID
///
public int GoodsId { get; set; }
///
/// 页码
///
public int Page { get; set; } = 1;
///
/// 每页数量
///
public int Limit { get; set; } = 15;
}
///
/// 参与者DTO
///
public class ParticipantDto
{
///
/// 昵称
///
public string Nickname { get; set; } = string.Empty;
///
/// 头像
///
public string Avatar { get; set; } = string.Empty;
///
/// 参与时间
///
public string CreateTime { get; set; } = string.Empty;
}
///
/// 开奖记录请求
///
public class WinningRecordsRequest
{
///
/// 商品ID
///
public int GoodsId { get; set; }
///
/// 页码
///
public int Page { get; set; } = 1;
///
/// 每页数量
///
public int Limit { get; set; } = 15;
}
///
/// 开奖记录DTO
///
public class WinningRecordDto
{
///
/// 昵称
///
public string Nickname { get; set; } = string.Empty;
///
/// 头像
///
public string Avatar { get; set; } = string.Empty;
///
/// 奖品名称
///
public string GoodslistTitle { get; set; } = string.Empty;
///
/// 奖品等级ID
///
public int ShangId { get; set; }
///
/// 中奖时间
///
public string CreateTime { get; set; } = string.Empty;
}
///
/// 用户参与记录DTO
///
public class UserParticipationDto
{
///
/// 商品ID
///
public int GoodsId { get; set; }
///
/// 商品标题
///
public string GoodsTitle { get; set; } = string.Empty;
///
/// 奖品名称
///
public string GoodslistTitle { get; set; } = string.Empty;
///
/// 奖品等级ID
///
public int ShangId { get; set; }
///
/// 参与时间
///
public string CreateTime { get; set; } = string.Empty;
}
///
/// 用户中奖记录DTO
///
public class UserWinningDto
{
///
/// 商品ID
///
public int GoodsId { get; set; }
///
/// 商品标题
///
public string GoodsTitle { get; set; } = string.Empty;
///
/// 奖品名称
///
public string GoodslistTitle { get; set; } = string.Empty;
///
/// 奖品等级ID
///
public int ShangId { get; set; }
///
/// 中奖时间
///
public string CreateTime { get; set; } = string.Empty;
}
///
/// 福利屋购买请求
///
public class WelfareBuyRequest
{
///
/// 商品ID
///
[System.Text.Json.Serialization.JsonPropertyName("goods_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(HoneyBox.Model.Converters.StringToIntConverter))]
public int GoodsId { get; set; }
///
/// 购买数量/抽奖次数
///
[System.Text.Json.Serialization.JsonPropertyName("prize_num")]
public int PrizeNum { get; set; } = 1;
///
/// 是否使用余额抵扣 0=不抵扣 1=抵扣
///
[System.Text.Json.Serialization.JsonPropertyName("use_money_is")]
public int UseMoneyIs { get; set; }
///
/// 是否使用积分抵扣 0=不抵扣 1=抵扣
///
[System.Text.Json.Serialization.JsonPropertyName("use_integral_is")]
public int UseIntegralIs { get; set; }
///
/// 是否使用货币2抵扣 0=不抵扣 1=抵扣
///
[System.Text.Json.Serialization.JsonPropertyName("use_money2_is")]
public int UseMoney2Is { get; set; }
///
/// 优惠券ID
///
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(HoneyBox.Model.Converters.StringToIntConverter))]
public int CouponId { get; set; }
}
///
/// 福利屋购买响应
///
public class WelfareBuyResponse
{
///
/// 状态: 0=余额支付成功 1=需要微信支付
///
public int Status { get; set; }
///
/// 订单号
///
public string OrderNum { get; set; } = string.Empty;
///
/// 微信支付参数 (当Status=1时返回)
///
public object? PayParams { get; set; }
}
///
/// 福利屋列表请求 (兼容GET/POST)
///
public class FuliwuListRequest
{
///
/// 类型: 1=进行中, 3=已结束
///
public int Type { get; set; } = 1;
///
/// 页码
///
public int Page { get; set; } = 1;
}
///
/// 福利屋列表响应 (兼容PHP格式)
///
public class FuliwuListResponse
{
///
/// 福利屋列表数据
///
public List Data { get; set; } = new();
///
/// 最后一页页码
///
public int LastPage { get; set; }
}
///
/// 福利屋参与者列表响应
///
public class WelfareParticipantsResponse
{
///
/// 参与者列表
///
public List List { get; set; } = new();
}
///
/// 福利屋开奖记录响应
///
public class WelfareRecordsResponse
{
///
/// 开奖记录列表
///
public List List { get; set; } = new();
}