UserManager.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. package com.zhcs.dt.service.system.user;
  2. import java.util.List;
  3. import com.zhcs.dt.entity.Page;
  4. import com.zhcs.dt.entity.system.User;
  5. import com.zhcs.dt.util.PageData;
  6. /** 用户接口类
  7. * @author fh313596790qq(青苔)
  8. * 修改时间:2015.11.2
  9. */
  10. public interface UserManager {
  11. /**登录判断
  12. * @param pd
  13. * @return
  14. * @throws Exception
  15. */
  16. public PageData getUserByNameAndPwd(PageData pd)throws Exception;
  17. /**更新登录时间
  18. * @param pd
  19. * @throws Exception
  20. */
  21. public void updateLastLogin(PageData pd)throws Exception;
  22. /**保存用户皮肤
  23. * @param pd
  24. * @throws Exception
  25. */
  26. public void saveSkin(PageData pd)throws Exception;
  27. /**通过用户ID获取用户信息和角色信息
  28. * @param USER_ID
  29. * @return
  30. * @throws Exception
  31. */
  32. public User getUserAndRoleById(String USER_ID) throws Exception;
  33. /**通过USERNAEME获取数据
  34. * @param pd
  35. * @return
  36. * @throws Exception
  37. */
  38. public PageData findByUsername(PageData pd)throws Exception;
  39. /**列出某角色下的所有用户
  40. * @param pd
  41. * @return
  42. * @throws Exception
  43. */
  44. public List<PageData> listAllUserByRoldId(PageData pd) throws Exception;
  45. /**保存用户IP
  46. * @param pd
  47. * @throws Exception
  48. */
  49. public void saveIP(PageData pd)throws Exception;
  50. /**用户列表
  51. * @param page
  52. * @return
  53. * @throws Exception
  54. */
  55. public List<PageData> listUsers(Page page)throws Exception;
  56. /**用户列表(弹窗选择用)
  57. * @param page
  58. * @return
  59. * @throws Exception
  60. */
  61. public List<PageData> listUsersBystaff(Page page)throws Exception;
  62. /**通过邮箱获取数据
  63. * @param pd
  64. * @return
  65. * @throws Exception
  66. */
  67. public PageData findByUE(PageData pd)throws Exception;
  68. /**通过编号获取数据
  69. * @param pd
  70. * @return
  71. * @throws Exception
  72. */
  73. public PageData findByUN(PageData pd)throws Exception;
  74. /**通过id获取数据
  75. * @param pd
  76. * @return
  77. * @throws Exception
  78. */
  79. public PageData findById(PageData pd)throws Exception;
  80. /**修改用户
  81. * @param pd
  82. * @throws Exception
  83. */
  84. public void editU(PageData pd)throws Exception;
  85. /**保存用户
  86. * @param pd
  87. * @throws Exception
  88. */
  89. public void saveU(PageData pd)throws Exception;
  90. /**删除用户
  91. * @param pd
  92. * @throws Exception
  93. */
  94. public void deleteU(PageData pd)throws Exception;
  95. /**批量删除用户
  96. * @param USER_IDS
  97. * @throws Exception
  98. */
  99. public void deleteAllU(String[] USER_IDS)throws Exception;
  100. /**用户列表(全部)
  101. * @param pd
  102. * @return
  103. * @throws Exception
  104. */
  105. public List<PageData> listAllUser(PageData pd)throws Exception;
  106. /**获取总数
  107. * @param pd
  108. * @throws Exception
  109. */
  110. public PageData getUserCount(String value)throws Exception;
  111. public List<String> listAllCompany() throws Exception;
  112. public List<String> getAllRoadName(String companyName) throws Exception;
  113. public void insertAPIUser(PageData pd) throws Exception;
  114. public void deleteAPIUser(PageData pd) throws Exception;
  115. public void editAPIUser(PageData pd) throws Exception;
  116. }