{
"username": "小甜甜", // 可选,新用户名
"avatar": "https://example.com/avatar.jpg", // 可选,头像URL
"gender": "female", // 可选,性别(male/female/other)
"phone":"123"
}
curl --location --request PUT '/api/users/info' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "小甜甜", // 可选,新用户名
"avatar": "https://example.com/avatar.jpg", // 可选,头像URL
"gender": "female", // 可选,性别(male/female/other)
"phone":"123"
}'
{
"success": true,
"message": "用户信息更新成功",
"data": {
"user_id": "7307316933043425280",
"username": "小甜甜",
"email": null,
"phone": "123",
"avatar": "https://example.com/avatar.jpg",
"payment_account_id": null,
"payment_qr_code": null,
"payment_method": "qr_code",
"gender": "female",
"createdAt": "2025-04-03T02:29:41.000Z",
"updatedAt": "2025-04-03T02:29:41.000Z",
"roles": [
{
"role_id": 4,
"role_name": "普通用户",
"description": null,
"createdAt": "2025-03-11T05:49:06.000Z",
"updatedAt": "2025-03-11T05:49:08.000Z"
}
]
}
}