v1

latestSwagger 2.0Apache 2.02026-07-174372196.9 KB
用户管理

删除用户

管理员删除指定用户

delete/users/{id}

Path parameters

idstring required

用户ID

Response

用户删除成功

codeinteger

HTTP状态码

{"stackTrail":"components:schemas:model.APIResponse:properties:data","oasType":"schema","type":"unknown","description":"响应数据"}
errorstring

错误信息(当success=false时)

messagestring

响应消息

requestIdstring

请求ID,用于跟踪

successboolean

是否成功

timestampstring

响应时间戳

Example response

{
  "code": 200,
  "error": "参数错误",
  "message": "操作成功",
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "timestamp": "2023-01-01T12:00:00Z"
}