class UserManagementImpl implements UserManagementService {

    @Override
    public CommonResult listAllRolesByDepartmentId(Integer departmentId){
        JSONObject returnJson = new JSONObject();

        List<HashMap> roles = roleMapper.listAllRolesByDepartmentId(departmentId);

        returnJson.put("roles", roles);
        return CommonResult.success(returnJson);
    }

}