增加几个工具类

Signed-off-by: XuTongle <xutongle@gmail.com>