Commit 16c9f9af authored by xiaozhe.chen's avatar xiaozhe.chen

添加role相关的类

parent 9cc088a7
......@@ -12,12 +12,12 @@ import org.springframework.stereotype.Service;
@Service
public class RoleService {
//@Autowired
//private RoleRepository roleRepository;
//@Autowired
//private RoleUserRepository roleUserRepository;
@Autowired
private RoleRepository roleRepository;
@Autowired
private RoleUserRepository roleUserRepository;
/*
public Role findRoleByUserId(Long userId) {
RoleUser roleUser = roleUserRepository.findByUserId(userId);
Long roleId = roleUser.getRoleId();
......@@ -29,6 +29,5 @@ public class RoleService {
public Role findRoleByRoleId(Long roleId) {
return roleRepository.findOne(roleId);
}
*/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment