Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Models/Dto/Bag/UserBagDto.cs
glz 8291b82362 feat: 完成宠物模块重构与社区功能开发
本次提交包含多项核心更新:
1.  重构宠物模块数据结构:拆分皮肤图片为独立表,优化Pet、PetEvolution实体,调整字段类型与冗余字段
2.  新增宠物皮肤图片管理表,支持多进化阶段多图片展示
3.  完善宠物DTO,新增当前形态名称、皮肤信息与图片序列返回
4.  新增社区功能模块:
    - 微信端社区Feed流、点赞/取消点赞接口
    - 后台社区消息管理接口与服务实现
5.  优化商城与背包模块,替换皮肤图片获取逻辑为从新表读取预览图
6.  重构勋章服务,新增规则校验逻辑
7.  调整命名规范,修复原有控制器命名问题
2026-06-05 17:15:30 +08:00

92 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace QYZH.InteractiveMagazine.Models.Dto.Bag;
/// <summary>
/// 背包物品输出
/// </summary>
public class UserBagOutput
{
public long Id { get; set; }
public long ItemId { get; set; }
public string ItemType { get; set; } = string.Empty;
public int Quantity { get; set; }
public string Status { get; set; } = string.Empty;
/// <summary>
/// 关联商品信息(如果有)
/// </summary>
public BagProductBrief? Product { get; set; }
/// <summary>
/// 关联皮肤信息PetBg 类型时)
/// </summary>
public BagSkinBrief? Skin { get; set; }
public DateTime CreatedAt { get; set; }
}
/// <summary>
/// 背包中的商品简要
/// </summary>
public class BagProductBrief
{
public string Name { get; set; } = string.Empty;
public string? ImageUrl { get; set; }
public string? Description { get; set; }
}
/// <summary>
/// 背包中的皮肤简要
/// </summary>
public class BagSkinBrief
{
public long SkinId { get; set; }
public string SkinName { get; set; } = string.Empty;
public string Rarity { get; set; } = string.Empty;
/// <summary>
/// 皮肤预览图(取第一张图片)
/// </summary>
public string? PreviewImage { get; set; }
}
/// <summary>
/// 使用物品输入(补签卡)
/// </summary>
public class UseItemInput
{
/// <summary>
/// 背包物品Id
/// </summary>
public long BagItemId { get; set; }
/// <summary>
/// 补签目标日期yyyy-MM-dd仅补签卡使用
/// </summary>
public string? TargetDate { get; set; }
}
/// <summary>
/// 换肤输入
/// </summary>
public class EquipSkinInput
{
/// <summary>
/// 皮肤Id传0则恢复默认皮肤
/// </summary>
public long SkinId { get; set; }
}
/// <summary>
/// 使用物品输出
/// </summary>
public class UseItemOutput
{
public bool IsSuccess { get; set; }
public string Message { get; set; } = string.Empty;
/// <summary>
/// 补签时返回的签到结果
/// </summary>
public object? Extra { get; set; }
}