In case of a fungal infection , the doctor usually prescribes anti-fungal tablets and creams for application.
However, how do you know that you have a fungal infection? You should confirm with a doctor and take medication only when it is clearly advised by your doctor.
Other than medication, you should maintain hygiene and make aure you do not have similar lesions anywhere else on your bosy.
Hope this helped. Let us know if this answered your queries or if you have any other.