using generic type for dao

Signed-off-by: zhujiancom <eric87com@gmail.com>