RoleMapper.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.springblade.modules.system.mapper;
  17. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  18. import com.baomidou.mybatisplus.core.metadata.IPage;
  19. import org.springblade.modules.system.entity.Role;
  20. import org.springblade.modules.system.vo.RoleVO;
  21. import java.util.List;
  22. /**
  23. * Mapper 接口
  24. *
  25. * @author Chill
  26. * @since 2018-12-24
  27. */
  28. public interface RoleMapper extends BaseMapper<Role> {
  29. /**
  30. * 自定义分页
  31. *
  32. * @param page
  33. * @param role
  34. * @return
  35. */
  36. List<RoleVO> selectRolePage(IPage page, RoleVO role);
  37. /**
  38. * 获取树形节点
  39. *
  40. * @return
  41. */
  42. List<RoleVO> tree();
  43. }