整理各个功能函数,添加详细的注释
Signed-off-by: liudonghua7914 <657226657@qq.com>