you are having ecchymosis
of eyelids because of collection of blood in the layers of the eyelids. It is also called as black eye. The treatment is mainly by cold pack application and oral analgesic
But the important thing is need to look for any other associated injury
to the eyeball or to the orbit. This can be done by simple clinical examination or by tests like x ray or ct scan
. Do consult your eye doctor for these examinations.