add enum advanced use

Signed-off-by: WanBin <ouyangwanbin@gmail.com>