Skip to content

UIGFv4.2 #108

@BTMuli

Description

@BTMuli

@UIGF-org/uigf-constitutors

原始数据

来自 Discussion

{
    "id": "1761114000000054207",
    "region": "os_asia",
    "uid": "8xxxxxxxx",
    "schedule_id": "18",
    "item_type": "Cosmetic Catalog",
    "item_id": "270075",
    "item_name": "Component Catalog - \"Dignified Formal Shirt: Ash White\"",
    "rank_type": "2",
    "is_up": "0",
    "time": "2025-10-22 14:20:52",
    "op_gacha_type": "1000"
}

来自个人数据:

{
  "id": "1761196200000004865",
  "region": "cn_qd01",
  "uid": "5xxxxxxxx",
  "schedule_id": "18",
  "item_type": "装扮形录",
  "item_id": "270046",
  "item_name": "部件形录·「泡泡袖衬衫·茜红」",
  "rank_type": "2",
  "is_up": "0",
  "time": "2025-10-23 13:25:24",
  "op_gacha_type": "1000"
}

来自群友数据:

{
  "id": "1761239400000093692",
  "region": "cn_gf01",
  "uid": "1xxxxxxxx",
  "schedule_id": "20",
  "item_type": "装扮部件",
  "item_id": "261642",
  "item_name": "男性装扮·「皎星短靴」",
  "rank_type": "3",
  "is_up": "0",
  "time": "2025-10-24 01:51:36",
  "op_gacha_type": "20021"
}

来自 官方JSON:

Image

参照现有标准:

  1. 建议在 root 新增字段 表示,建议命名为 hk4e_ugc
  2. 大部分数据保留原字段命名
  3. 一级字段参照hk4e处理,list数据剔除 regionitem_nameitem_type 可选
  4. 由于timezone既可以由region推导又可以由uid推导,故region字段进行了剔除
    参考类型:
type Hk4eUGC = {
  uid: string|number;
  timezone: number;
  lang?: string;
  list: BeyondItem[];
}

type BeyondItem = {
  id: string;
  schedule_id: string;
  item_type?: string;
  item_id: string;
  item_name?: string;
  rank_type: string;
  is_up: string;
  time: string;
  op_gacha_type: string;
}

Metadata

Metadata

Assignees

Labels

UIGFdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions