基于状态树改造

Signed-off-by: clifford.cheny <boycy815@gmail.com>