task.go 274 B

12345678910111213
  1. package init_serve
  2. import "hongze/hz_crm_eta/services"
  3. func InitTask() {
  4. // 监听角色同步
  5. go services.ListenSyncRoleFromCrm()
  6. go services.ListenSyncRoleFromEta()
  7. // 监听用户同步
  8. go services.ListenSyncAdminFromCrm()
  9. go services.ListenSyncAdminFromEta()
  10. }