Skip to content

Commit f73112c

Browse files
committed
fix: item type
1 parent 01f6f0a commit f73112c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/model/item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package model
22

33
import (
44
"github.com/goccy/go-json"
5-
65
"github.com/uptrace/bun"
76
"gopkg.in/guregu/null.v3"
87
)
@@ -14,6 +13,7 @@ type Item struct {
1413
ItemID int `bun:",pk,autoincrement" json:"penguinItemId"`
1514
// ArkItemID (itemId) is the previously used, string form ID of the item; in JSON-representation `itemId` is used as key.
1615
ArkItemID string `json:"itemId"`
16+
Type string `json:"type"`
1717
// Name is a map with language code as key and the name of the item in that language as value.
1818
Name json.RawMessage `json:"name" swaggertype:"object"`
1919
// Existence is a map with server code as key and the existence of the item in that server as value.

internal/model/v3/item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Item struct {
1212
Existence json.RawMessage `json:"existence" swaggertype:"object"`
1313
SortID int `json:"sortId"`
1414
Rarity int `json:"rarity"`
15-
ItemType string `json:"type"`
15+
Type string `json:"type"`
1616
Group null.String `json:"group,omitempty" swaggertype:"string"`
1717
Sprite null.String `json:"sprite,omitempty" swaggertype:"string"`
1818
Keywords json.RawMessage `json:"keywords,omitempty" swaggertype:"object"`

0 commit comments

Comments
 (0)