update some bugs and move some method from privilegeService to roleService