### What problem does this PR solve? Simplify Encode ### Type of change - [x] Refactoring
### What problem does this PR solve? Refactor model in GO ### Type of change - [x] Refactoring
### What problem does this PR solve? As title. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>