Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// 自定义的唯一 ID
// 自增 ID,不会重复
UUID uint `json:"uuid" gorm:"primaryKey;autoIncrement"`
// 游戏内道具 ID
// 这个 ID 一般来源于企鹅物流,实际用途不大,所以暂时以 UUID 为主要的索引 ID
// 讲道理这个 ID 应该不会重复,除非它不讲道理
ItemID string `json:"item_id"`
// 道具名称
// 道具的官方中文名称,暂不考虑其他语种
Name string `json:"name"`
// 分类
// 道具的大类,例如「消耗道具」、「材料」、「作战记录」、「芯片」等
Type string `json:"type"`
// 横向分类
// 小类横向细分,同一级别的为一类,例如「先锋芯片」、「近卫芯片」等
Rank string `json:"rank"`
// 纵向分类
// 小类纵向细分,同系为一类,例如「先锋芯片」、「先锋芯片组」、「先锋双芯片」等
Group string `json:"group"`
// 别名
// 记录每个道具的别名,不同道具别名允许重复
Alias []string `json:"alias" gorm:"serializer:json"`
// 图标
// 记录图标来源 url,一般来源于 prts.wiki
Icon string `json:"icon"`
}
Click to show internal directories.
Click to hide internal directories.