---
title: "查询背包礼物数量"
method: GET
path: "/api/backpack/gift/count"
tags: ["背包管理"]
---

# 查询背包礼物数量

`GET /api/backpack/gift/count`

## Request

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

查询指定用户的某个礼物在背包中的数量

## Query parameters

- `uid` integer, required
- `giftId` integer, required

## Response `200`

OK

- WebServiceMessageBackpackGiftCountDTO
  - `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)
