admin.go 334 B

1234567891011121314151617
  1. package services
  2. import "hongze/hongze_cygx/models"
  3. func GetAdminMobileMap() (mapItem map[string]string, err error) {
  4. adminList, e := models.GetAdminByRole()
  5. if e != nil {
  6. err = e
  7. return
  8. }
  9. mapMobile := make(map[string]string)
  10. for _, v := range adminList {
  11. mapMobile[v.Mobile] = v.Mobile
  12. }
  13. mapItem = mapMobile
  14. return
  15. }