refactor(pet): 重构精灵信息获取逻辑并丰富精灵简要信息

- 使用 copier 库简化精灵信息复制过程
- 在 PetShortInfo 结构体中添加更多精灵属性:
  - ID
  - Level
  - SkinID
  - Shiny
- 优化 GetPetList 函数返回值结构
This commit is contained in:
2025-09-01 01:31:42 +08:00
parent 4b5c6ce129
commit 0dbb7d9a8d
2 changed files with 9 additions and 6 deletions

View File

@@ -12,6 +12,9 @@ type GetPetListOutboundInfo struct {
// PetShortInfo 精灵简要信息结构体
type PetShortInfo struct {
TypeId uint32 // 精灵类型ID
ID uint32 // 精灵类型ID对应Java中的id
CatchTime uint32 // 精灵生成时间
Level uint32 // 精灵等级
SkinID uint32 // 精灵皮肤ID
Shiny uint32 // 精灵是否闪光0=否1=是)
}