UserMapper.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.modules.system.mapper;
  18. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  19. import com.baomidou.mybatisplus.core.metadata.IPage;
  20. import org.springblade.modules.system.entity.User;
  21. import java.util.List;
  22. /**
  23. * Mapper 接口
  24. *
  25. * @author Chill
  26. */
  27. public interface UserMapper extends BaseMapper<User> {
  28. /**
  29. * 自定义分页
  30. *
  31. * @param page
  32. * @param user
  33. * @return
  34. */
  35. List<User> selectUserPage(IPage page, User user);
  36. /**
  37. * 获取用户
  38. *
  39. * @param account
  40. * @param password
  41. * @return
  42. */
  43. User getUser(String account, String password);
  44. /**
  45. * 获取角色名
  46. *
  47. * @param ids
  48. * @return
  49. */
  50. List<String> getRoleName(String[] ids);
  51. /**
  52. * 获取角色别名
  53. *
  54. * @param ids
  55. * @return
  56. */
  57. List<String> getRoleAlias(String[] ids);
  58. /**
  59. * 获取部门名
  60. *
  61. * @param ids
  62. * @return
  63. */
  64. List<String> getDeptName(String[] ids);
  65. }