Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

212 linhas
7.5 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. /// 用户列表(导出Excel)【家长】
  71. /// </summary>
  72. /// <returns></returns>
  73. void GetExportListOfFamily();
  74. /// <summary>
  75. /// 获取实体,通过用户账号
  76. /// </summary>
  77. /// <param name="account">用户账号</param>
  78. /// <returns></returns>
  79. UserEntity GetEntityByAccount(string account);
  80. /// <summary>
  81. /// 获取实体,通过用户名
  82. /// </summary>
  83. /// <param name="account">用户账号</param>
  84. /// <returns></returns>
  85. UserEntity GetEntityByName(string account);
  86. /// <summary>
  87. /// 获取用户数据
  88. /// </summary>
  89. /// <param name="userId">用户主键</param>
  90. /// <returns></returns>
  91. UserEntity GetEntityByUserId(string userId);
  92. /// <summary>
  93. /// 获取用户列表数据
  94. /// </summary>
  95. /// <param name="userIds">用户主键串</param>
  96. /// <returns></returns>
  97. List<UserEntity> GetListByUserIds(string userIds);
  98. /// <summary>
  99. /// 获取映射数据
  100. /// </summary>
  101. /// <returns></returns>
  102. Dictionary<string, UserModel> GetModelMap();
  103. List<UserEntity> GetSaveClassMap();
  104. #endregion
  105. #region 提交数据
  106. /// <summary>
  107. /// 虚拟删除
  108. /// </summary>
  109. /// <param name="keyValue">主键</param>
  110. void VirtualDelete(string keyValue);
  111. /// <summary>
  112. /// 虚拟删除(批量)
  113. /// </summary>
  114. /// <param name="keyValue">主键</param>
  115. void VirtualDeleteBatch(string keyValue);
  116. /// <summary>
  117. /// 保存用户表单(新增、修改)
  118. /// </summary>
  119. /// <param name="keyValue">主键值</param>
  120. /// <param name="userEntity">用户实体</param>
  121. /// <returns></returns>
  122. void SaveEntity(string keyValue, UserEntity userEntity);
  123. /// <summary>
  124. /// 修改用户登录密码
  125. /// </summary>
  126. /// <param name="newPassword">新密码(MD5 小写)</param>
  127. /// <param name="oldPassword">旧密码(MD5 小写)</param>
  128. bool RevisePassword(string newPassword, string oldPassword);
  129. /// <summary>
  130. /// 重置密码
  131. /// </summary>
  132. /// <param name="keyValue">账号主键</param>
  133. void ResetPassword(string keyValue, string defaultpwd);
  134. /// <summary>
  135. /// 重置密码(八位)
  136. /// </summary>
  137. /// <param name="keyValue">账号主键</param>
  138. void ResetPasswordEight(string keyValue, string defaultpwd);
  139. /// <summary>
  140. /// 修改用户状态
  141. /// </summary>
  142. /// <param name="keyValue">主键值</param>
  143. /// <param name="state">状态:1-启动;0-禁用</param>
  144. void UpdateState(string keyValue, int state);
  145. /// <summary>
  146. /// 保存用户的设备号
  147. /// </summary>
  148. /// <param name="keyValue">主键</param>
  149. /// <param name="deviceId">设备号</param>
  150. void UpdateDeviceId(string keyValue, string deviceId);
  151. /// <summary>
  152. /// 解绑微信
  153. /// </summary>
  154. void DoUnbundWeiXin(string keyValue);
  155. #endregion
  156. #region 验证数据
  157. /// <summary>
  158. /// 账户不能重复
  159. /// </summary>
  160. /// <param name="account">账户值</param>
  161. /// <param name="keyValue">主键</param>
  162. /// <returns></returns>
  163. bool ExistAccount(string account, string keyValue);
  164. #endregion
  165. #region 扩展方法
  166. /// <summary>
  167. /// 验证登录 F_UserOnLine 0 不成功,1成功
  168. /// </summary>
  169. /// <param name="username">账号</param>
  170. /// <param name="password">密码 MD5 32位 小写</param>
  171. /// <returns></returns>
  172. UserEntity CheckLogin(string username, string password);
  173. /// <summary>
  174. /// 获取用户头像
  175. /// </summary>
  176. /// <param name="userId">用户ID</param>
  177. void GetImg(string userId);
  178. void setPassword(string userid, string pwd);
  179. List<UserEntity> GetStudents();
  180. #endregion
  181. UserEntity GetEntityByWeixinOpenId(string openid);
  182. void UpdateWeixinOpenId(string userEntityFUserId, string loginModelOpenid);
  183. void UpdateWeixinOpenIdPC(string userEntityFUserId, string loginModelOpenid);
  184. /// <summary>
  185. /// 获取超级管理员用户列表
  186. /// </summary>
  187. /// <returns></returns>
  188. IEnumerable<UserEntity> GetAdminList();
  189. void UpdateIp(string ip, string id);
  190. void GetImgForDC(string userId);
  191. UserEntity GetEntityByWeixinOpenIdPC(string openId);
  192. /// <summary>
  193. /// 修改用户的允许登录结束时间
  194. /// </summary>
  195. /// <param name="keyValue">主键值</param>
  196. /// <param name="state">状态:1-赋值;0-重置</param>
  197. void UpdateAllowEndTime(string keyValue, int state);
  198. }
  199. }