调整代码框架，大致完成初步架构

Signed-off-by: hurley25 <liuhuan1992@gmail.com>