Add @enum & config

1.add @enum to decorator class
2.make config avaliable