[codegen] use private codegen
Merge pull request #1 from yuyichao/master

[codegen] use private codegen