Files
honoka-chan/internal/handler/api/item/list.go
T
YumeMichi c77241a883 Overhaul [1/n]
Signed-off-by: Sean Du <do4suki@gmail.com>
2026-01-29 02:42:28 +08:00

14 lines
253 B
Go

package item
import (
"encoding/json"
honokautils "honoka-chan/pkg/utils"
)
func itemList() (res any, err error) {
itemResp := honokautils.ReadAllText("assets/serverdata/item.json")
err = json.Unmarshal([]byte(itemResp), &res)
return res, err
}