---
title: "查询用户所有背包礼物"
method: GET
path: "/api/backpack/gift/list"
tags: ["背包管理"]
---

# 查询用户所有背包礼物

`GET /api/backpack/gift/list`

## Request

- Base URL: `http://api.oloo.live`
- URL: `http://api.oloo.live/api/backpack/gift/list`
- Auth: none declared

查询用户背包中的所有礼物及数量

## Query parameters

- `uid` integer, required

## Response `200`

OK

- WebServiceMessageListBackpackGiftCountDTO
  - `code` integer
  - `data` BackpackGiftCountDTO[]
    - `baseId` string
    - `uid` integer: 用户ID
    - `giftId` integer: 礼物ID
    - `giftName` string: 礼物名称
    - `imgUrl` string: 礼物图标URL
    - `price` integer: 礼物价格（金币）
    - `count` integer: 背包中的数量
    - `giftIconUrls` string
  - `message` string
  - `time` integer

---

[API](https://skmtc.dev/oloo/apis/oloo-api.md) - [All operations](https://skmtc.dev/oloo/apis/oloo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oloo/apis/oloo-api/revisions/ada91d3a60e4?raw)
