改用类实现

Signed-off-by: fink <hspan1234@gmail.com>