test_class.declarator: roleService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private RoleService roleService;
test_class.type: RoleService
test_class.var_name: roleService
test_class.file: lzpeng-boot-server/src/test/java/com/lzpeng/project/sys/service/RoleServiceTest.java
test_class.identifier: RoleServiceTest
test_case.body: @Test
      public void testQuery() {
          Role dto = new Role();
          QueryResult<Role> result = roleService.query(0, 10, dto);
          assertNotNull(result.getList());
      }
test_case.class_method_signature: RoleServiceTest.testQuery()
test_case.full_signature: @Test public void testQuery()
test_case.identifier: testQuery
test_case.invocations: query assertNotNull getList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testQuery()
focal_class.declarator: menuService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private MenuService menuService;
focal_class.type: MenuService
focal_class.var_name: menuService
focal_class.file: lzpeng-boot-server/src/main/java/com/lzpeng/project/sys/service/RoleService.java
focal_class.identifier: RoleService
focal_class.class_method_signature: RoleService.beforeSave(Role role)
focal_class.full_signature: @Override protected boolean beforeSave(Role role)
focal_class.identifier: beforeSave
focal_class.modifiers: @Override protected
focal_class.parameters: (Role role)
focal_class.return: boolean
focal_class.signature: boolean beforeSave(Role role)
focal_class.class_method_signature: RoleService.setPermissions(String id, String[] permissions)
focal_class.full_signature: public Role setPermissions(String id, String[] permissions)
focal_class.identifier: setPermissions
focal_class.modifiers: public
focal_class.parameters: (String id, String[] permissions)
focal_class.return: Role
focal_class.signature: Role setPermissions(String id, String[] permissions)
focal_class.class_method_signature: RoleService.query(int page, int size, Role model)
focal_class.full_signature: @Override public QueryResult<Role> query(int page, int size, Role model)
focal_class.identifier: query
focal_class.modifiers: @Override public
focal_class.parameters: (int page, int size, Role model)
focal_class.return: QueryResult<Role>
focal_class.signature: QueryResult<Role> query(int page, int size, Role model)
focal_class.class_method_signature: RoleService.noPermissions(String roleId)
focal_class.full_signature: public List<Menu> noPermissions(String roleId)
focal_class.identifier: noPermissions
focal_class.modifiers: public
focal_class.parameters: (String roleId)
focal_class.return: List<Menu>
focal_class.signature: List<Menu> noPermissions(String roleId)
focal_class.superclass: extends AbstractRoleService
focal_method.body: @Override
      public QueryResult<Role> query(int page, int size, Role model) {
          QueryResult<Role> result = super.query(page, size, model);
          for (Role role : result.getList()) {
              List<Menu> menus = role.getMenus();
              menus = TreeEntityUtil.flatData(menus);
              role.setMenus(menus);
          }
          return result;
      }
focal_method.class_method_signature: RoleService.query(int page, int size, Role model)
focal_method.full_signature: @Override public QueryResult<Role> query(int page, int size, Role model)
focal_method.identifier: query
focal_method.invocations: query getList getMenus flatData setMenus
focal_method.modifiers: @Override public
focal_method.parameters: (int page, int size, Role model)
focal_method.return: QueryResult<Role>
focal_method.signature: QueryResult<Role> query(int page, int size, Role model)