Skip to content

Commit

Permalink
fix: item type
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Dec 1, 2023
1 parent 01f6f0a commit f73112c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/model/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package model

import (
"github.com/goccy/go-json"

"github.com/uptrace/bun"
"gopkg.in/guregu/null.v3"
)
Expand All @@ -14,6 +13,7 @@ type Item struct {
ItemID int `bun:",pk,autoincrement" json:"penguinItemId"`
// ArkItemID (itemId) is the previously used, string form ID of the item; in JSON-representation `itemId` is used as key.
ArkItemID string `json:"itemId"`
Type string `json:"type"`
// Name is a map with language code as key and the name of the item in that language as value.
Name json.RawMessage `json:"name" swaggertype:"object"`
// Existence is a map with server code as key and the existence of the item in that server as value.
Expand Down
2 changes: 1 addition & 1 deletion internal/model/v3/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Item struct {
Existence json.RawMessage `json:"existence" swaggertype:"object"`
SortID int `json:"sortId"`
Rarity int `json:"rarity"`
ItemType string `json:"type"`
Type string `json:"type"`
Group null.String `json:"group,omitempty" swaggertype:"string"`
Sprite null.String `json:"sprite,omitempty" swaggertype:"string"`
Keywords json.RawMessage `json:"keywords,omitempty" swaggertype:"object"`
Expand Down

0 comments on commit f73112c

Please sign in to comment.