[Enum]Use ea generate code replace enum code

Signed-off-by: Ethan Shan <shan0xiao0xi@gmail.com>