feat(wiki): add event item flag and decouple pokemon display ID
Add `is_event_item` to pokemon, items, and habitats. Separate internal `id` and `display_id` for pokemon to allow event variants. Update frontend forms and views to support the new fields.
This commit is contained in:
@@ -246,7 +246,9 @@
|
||||
|
||||
Pokemon 可配置:
|
||||
|
||||
- ID
|
||||
- 内部 ID:`id`,系统唯一,用于路由、外键和实体关联;普通 Pokemon 新建时优先与展示 ID 一致,活动 Pokemon 由系统分配唯一内部 ID
|
||||
- 展示 ID:`display_id`,详情页、列表卡片和选择器中显示为 `#ID`
|
||||
- 是否为活动物品:`is_event_item`
|
||||
- 名称
|
||||
- Genus:可为空,支持翻译
|
||||
- 介绍 / Details:可为空,支持翻译
|
||||
@@ -269,6 +271,8 @@ Pokemon 可配置:
|
||||
- 翻译
|
||||
- 排序
|
||||
|
||||
Pokemon 的展示 ID 在普通 Pokemon 和活动 Pokemon 之间可以重复,例如允许同时存在普通 `#1 妙蛙种子` 和活动 `#1 毽子草`。数据库只要求同一个 `display_id + is_event_item` 组合唯一;前端路由和实体关联必须继续使用内部 `id`,不能使用展示 ID 作为路由或外键。
|
||||
|
||||
Pokemon 编辑表单使用标签页组织字段:
|
||||
|
||||
- 编辑表单提供 Fetch data 功能:
|
||||
@@ -341,6 +345,7 @@ Pokemon 详情页展示:
|
||||
物品可配置:
|
||||
|
||||
- 名称
|
||||
- 是否为活动物品:`is_event_item`
|
||||
- 分类:必填
|
||||
- 用途:可为空
|
||||
- 入手方式:可多选
|
||||
@@ -423,6 +428,7 @@ Pokemon 详情页展示:
|
||||
栖息地可配置:
|
||||
|
||||
- 名称
|
||||
- 是否为活动物品:`is_event_item`
|
||||
- 配方:多项物品 + 数量
|
||||
- 可出现的 Pokemon
|
||||
- 图片:通过通用 Wiki 图片上传维护当前图片和历史上传记录
|
||||
|
||||
Reference in New Issue
Block a user