---
title: "钻石兑换金币"
method: POST
path: "/api/wallet/exchange/diamond"
tags: ["用户钱包"]
---

# 钻石兑换金币

`POST /api/wallet/exchange/diamond`

## Request

- Base URL: `http://api.oloo.live`
- URL: `http://api.oloo.live/api/wallet/exchange/diamond`
- Auth: none declared

将用户钻石兑换为金币，兑换比例：1钻石 = 10金币

## Query parameters

- `uid` integer, required
- `diamondAmount` number, required

## Response `200`

OK

- ResultBoolean
  - `code` integer
  - `message` string
  - `data` boolean

---

[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)
