add pagination protocol
Merge pull request #29 from shangmin1990/master

add pagination protocol