add rpc proto
add test

Signed-off-by: lional <lional.king@gmail.com>