mirror of
https://forgejo.merr.is/annika/isl-api.git
synced 2025-12-11 12:17:41 -05:00
Added Functionality To PowerItem Endpoint
TODO: Change "addMultiple" to not require a map. That only exists so I could import easily from my old project.
This commit is contained in:
parent
d52d9968ba
commit
1420b14565
7 changed files with 373 additions and 95 deletions
|
|
@ -14,6 +14,24 @@ SELECT
|
|||
FROM
|
||||
powerItem;
|
||||
|
||||
-- GetAllByType finds all items of a specific type.
|
||||
-- name: GetAllByType :many
|
||||
SELECT
|
||||
id,
|
||||
itemType,
|
||||
iconURL,
|
||||
itemName,
|
||||
minItemPower,
|
||||
maxItemPower,
|
||||
rarity,
|
||||
origin,
|
||||
tooltip,
|
||||
isEventItem
|
||||
FROM
|
||||
powerItem
|
||||
WHERE
|
||||
itemType = pggen.arg('itemType');
|
||||
|
||||
-- FindByID finds items by the ID
|
||||
-- name: FindByID :one
|
||||
SELECT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue