獲取個人資料
接口信息
接口: GET /api/v1/makers/profiles
描述: 獲取賬戶資料
鑑權: Authorization請求頭附加JWT令牌
響應參數
| 字段 | 類型 | 說明 |
|---|---|---|
| wallet_address | string | Web3錢包地址 |
| username | string | 用戶名 |
| string | 電郵地址 | |
| avatar_url | string | 頭像鏈接 |
| status | string | 用戶狀態。詳見MakerStatus枚舉類型說明 |
請求示例
bash
curl -X GET "/api/v1/makers/profiles" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"響應示例
json
{
"code": 0,
"data": {
"wallet_address": "0x1234567890123456789012345678901234567890",
"username": "trader123",
"email": "trader@example.com",
"avatar_url": "https://example.com/avatar.png",
"status": "active"
}
}枚舉類型
MakerStatus - 用戶狀態
| 枚舉項 | 下標 | 說明 |
|---|---|---|
| active | 1 | 啟用 |
| inactive | 2 | 禁用 |
| suspended | 3 | 掛起 |