From f73112cbdb30931bed371c290eb6e91b189e7a72 Mon Sep 17 00:00:00 2001 From: GalvinGao Date: Fri, 1 Dec 2023 02:42:33 -0500 Subject: [PATCH] fix: item type --- internal/model/item.go | 2 +- internal/model/v3/item.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/item.go b/internal/model/item.go index 3b98efab..775a31ea 100644 --- a/internal/model/item.go +++ b/internal/model/item.go @@ -2,7 +2,6 @@ package model import ( "github.com/goccy/go-json" - "github.com/uptrace/bun" "gopkg.in/guregu/null.v3" ) @@ -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. diff --git a/internal/model/v3/item.go b/internal/model/v3/item.go index 26535e68..003cec33 100644 --- a/internal/model/v3/item.go +++ b/internal/model/v3/item.go @@ -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"`