The role of vitamin D in endocrine diseases