UserMapper.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.User;
  20. import java.util.List;
  21. /**
  22. * Mapper 接口
  23. *
  24. * @author Chill
  25. */
  26. public interface UserMapper extends BaseMapper<User> {
  27. /**
  28. * 自定义分页
  29. *
  30. * @param page
  31. * @param user
  32. * @return
  33. */
  34. List<User> selectUserPage(IPage page, User user);
  35. /**
  36. * 获取用户
  37. *
  38. * @param account
  39. * @param password
  40. * @return
  41. */
  42. User getUser(String account, String password);
  43. /**
  44. * 获取角色名
  45. *
  46. * @param ids
  47. * @return
  48. */
  49. List<String> getRoleName(String[] ids);
  50. /**
  51. * 获取角色别名
  52. *
  53. * @param ids
  54. * @return
  55. */
  56. List<String> getRoleAlias(String[] ids);
  57. /**
  58. * 获取部门名
  59. *
  60. * @param ids
  61. * @return
  62. */
  63. List<String> getDeptName(String[] ids);
  64. }