{
  "module": {
    "module": "用户管理",
    "moduleKey": "user"
  },
  "api": {
    "title": "切换用户状态",
    "method": "PUT",
    "path": "/api/users/{id}/status",
    "description": "切换系统用户的启用/禁用状态",
    "requestParams": {
      "body": {
        "status": "number｜必填，状态：1-有效，0-无效"
      },
      "path": [
        {
          "name": "id",
          "type": "string",
          "required": true,
          "description": "系统用户ID"
        }
      ]
    },
    "responseExample": {
      "success": {
        "code": "0000",
        "message": "状态更新成功",
        "data": {
          "id": 1,
          "code": "USER0001",
          "name": "系统管理员",
          "phone": "13800000000",
          "status": 1,
          "updateTime": "2025-01-01T10:00:00.000Z"
        }
      },
      "failure": {
        "code": "4040",
        "message": "用户不存在",
        "data": null
      }
    }
  }
}