You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

200 lines
7.1 KiB

  1. using System.Collections;
  2. using Learun.Util;
  3. using System.Collections.Generic;
  4. namespace Learun.Application.Organization
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创建人:陈彬彬
  10. /// 日 期:2017.03.06
  11. /// 描 述:用户模块业务类(接口)
  12. /// </summary>
  13. public interface UserIBLL
  14. {
  15. #region 获取数据
  16. /// <summary>
  17. /// 用户列表(根据公司主键)
  18. /// </summary>
  19. /// <param name="companyId">公司主键</param>
  20. /// <returns></returns>
  21. List<UserEntity> GetList(string companyId);
  22. /// <summary>
  23. /// 用户列表(根据公司主键,部门主键)
  24. /// </summary>
  25. /// <param name="companyId">公司主键</param>
  26. /// <param name="departmentId">部门主键</param>
  27. /// <param name="keyword">查询关键词</param>
  28. /// <returns></returns>
  29. List<UserEntity> GetList(string companyId, string departmentId, string keyword);
  30. List<UserEntity> GetListByDepartmentId(string departmentId);
  31. List<UserEntity> GetListByDepartmentIds(string departmentId);
  32. List<UserEntity> GetUserByDepartmentId(string departmentId);
  33. bool GetAny();
  34. bool GetStuAny();
  35. /// <summary>
  36. /// 用户列表(全部)
  37. /// </summary>
  38. /// <returns></returns>
  39. List<UserEntity> GetAllList();
  40. /// <summary>
  41. /// 修改用户信息
  42. /// </summary>
  43. void UpdateEntity(UserEntity entity);
  44. /// <summary>
  45. /// 用户列表(根据部门主键)
  46. /// </summary>
  47. /// <param name="departmentId">部门主键</param>
  48. /// <returns></returns>
  49. /// <summary>
  50. /// 获取分页数据
  51. /// </summary>
  52. /// <param name="companyId">公司主键</param>
  53. /// <param name="departmentId">部门主键</param>
  54. /// <param name="pagination">分页参数</param>
  55. /// <param name="keyword">查询关键词</param>
  56. /// <param name="tp">0 教师 1学生</param>
  57. /// <returns></returns>
  58. List<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp);
  59. /// <summary>
  60. /// 用户列表(导出Excel)
  61. /// </summary>
  62. /// <returns></returns>
  63. void GetExportList();
  64. /// <summary>
  65. /// 用户列表(导出Excel)【学生】
  66. /// </summary>
  67. /// <returns></returns>
  68. void GetExportListOfStudent();
  69. /// <summary>
  70. /// 获取实体,通过用户账号
  71. /// </summary>
  72. /// <param name="account">用户账号</param>
  73. /// <returns></returns>
  74. UserEntity GetEntityByAccount(string account);
  75. /// <summary>
  76. /// 获取实体,通过用户名
  77. /// </summary>
  78. /// <param name="account">用户账号</param>
  79. /// <returns></returns>
  80. UserEntity GetEntityByName(string account);
  81. /// <summary>
  82. /// 获取用户数据
  83. /// </summary>
  84. /// <param name="userId">用户主键</param>
  85. /// <returns></returns>
  86. UserEntity GetEntityByUserId(string userId);
  87. /// <summary>
  88. /// 获取用户列表数据
  89. /// </summary>
  90. /// <param name="userIds">用户主键串</param>
  91. /// <returns></returns>
  92. List<UserEntity> GetListByUserIds(string userIds);
  93. /// <summary>
  94. /// 获取映射数据
  95. /// </summary>
  96. /// <returns></returns>
  97. Dictionary<string, UserModel> GetModelMap();
  98. List<UserEntity> GetSaveClassMap();
  99. #endregion
  100. #region 提交数据
  101. /// <summary>
  102. /// 虚拟删除
  103. /// </summary>
  104. /// <param name="keyValue">主键</param>
  105. void VirtualDelete(string keyValue);
  106. /// <summary>
  107. /// 虚拟删除(批量)
  108. /// </summary>
  109. /// <param name="keyValue">主键</param>
  110. void VirtualDeleteBatch(string keyValue);
  111. /// <summary>
  112. /// 保存用户表单(新增、修改)
  113. /// </summary>
  114. /// <param name="keyValue">主键值</param>
  115. /// <param name="userEntity">用户实体</param>
  116. /// <returns></returns>
  117. void SaveEntity(string keyValue, UserEntity userEntity);
  118. /// <summary>
  119. /// 修改用户登录密码
  120. /// </summary>
  121. /// <param name="newPassword">新密码(MD5 小写)</param>
  122. /// <param name="oldPassword">旧密码(MD5 小写)</param>
  123. bool RevisePassword(string newPassword, string oldPassword);
  124. /// <summary>
  125. /// 重置密码
  126. /// </summary>
  127. /// <param name="keyValue">账号主键</param>
  128. void ResetPassword(string keyValue);
  129. /// <summary>
  130. /// 重置密码(八位)
  131. /// </summary>
  132. /// <param name="keyValue">账号主键</param>
  133. void ResetPasswordEight(string keyValue);
  134. /// <summary>
  135. /// 修改用户状态
  136. /// </summary>
  137. /// <param name="keyValue">主键值</param>
  138. /// <param name="state">状态:1-启动;0-禁用</param>
  139. void UpdateState(string keyValue, int state);
  140. /// <summary>
  141. /// 保存用户的设备号
  142. /// </summary>
  143. /// <param name="keyValue">主键</param>
  144. /// <param name="deviceId">设备号</param>
  145. void UpdateDeviceId(string keyValue, string deviceId);
  146. /// <summary>
  147. /// 解绑微信
  148. /// </summary>
  149. void DoUnbundWeiXin(string keyValue);
  150. #endregion
  151. #region 验证数据
  152. /// <summary>
  153. /// 账户不能重复
  154. /// </summary>
  155. /// <param name="account">账户值</param>
  156. /// <param name="keyValue">主键</param>
  157. /// <returns></returns>
  158. bool ExistAccount(string account, string keyValue);
  159. #endregion
  160. #region 扩展方法
  161. /// <summary>
  162. /// 验证登录 F_UserOnLine 0 不成功,1成功
  163. /// </summary>
  164. /// <param name="username">账号</param>
  165. /// <param name="password">密码 MD5 32位 小写</param>
  166. /// <returns></returns>
  167. UserEntity CheckLogin(string username, string password);
  168. /// <summary>
  169. /// 获取用户头像
  170. /// </summary>
  171. /// <param name="userId">用户ID</param>
  172. void GetImg(string userId);
  173. void setPassword(string userid,string pwd);
  174. List<UserEntity> GetStudents();
  175. #endregion
  176. UserEntity GetEntityByWeixinOpenId(string openid);
  177. void UpdateWeixinOpenId(string userEntityFUserId, string loginModelOpenid);
  178. void UpdateWeixinOpenIdPC(string userEntityFUserId, string loginModelOpenid);
  179. /// <summary>
  180. /// 获取超级管理员用户列表
  181. /// </summary>
  182. /// <returns></returns>
  183. IEnumerable<UserEntity> GetAdminList();
  184. void UpdateIp(string ip, string id);
  185. void GetImgForDC(string userId);
  186. UserEntity GetEntityByWeixinOpenIdPC(string openId);
  187. }
  188. }