fix import and prefix error
change enum code gen method