Thanks for your query.Based on the facts that you have posted it appears that you have acquired Genital Muco cutaneous Candidiasis
This being common in diabetic individuals please get your blood sugar levels test done to rule out Diabetes
Please take anti-fungal medicine like Fluconozole orally twice daily along with topical anti fungal jelly like Fluconozone for local application .
Ensure to clean your genitals with warm water twice daily.
It should get cured within a week.