gravity and thermodynamics

Why can black holes be assigned a temperature if they don’t have a microscopic structure? If that’s still possible, what exactly is their microscopic structure?