|
-
- using System.Collections;
- using Learun.Util;
- using System.Collections.Generic;
- namespace Learun.Application.Organization
- {
- /// <summary>
- /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
- /// Copyright (c) 2013-2018 北京泉江科技有限公司
- /// 创建人:陈彬彬
- /// 日 期:2017.03.06
- /// 描 述:用户模块业务类(接口)
- /// </summary>
- public interface UserIBLL
- {
-
- #region 获取数据
- /// <summary>
- /// 用户列表(根据公司主键)
- /// </summary>
- /// <param name="companyId">公司主键</param>
- /// <returns></returns>
- List<UserEntity> GetList(string companyId);
- /// <summary>
- /// 用户列表(根据公司主键,部门主键)
- /// </summary>
- /// <param name="companyId">公司主键</param>
- /// <param name="departmentId">部门主键</param>
- /// <param name="keyword">查询关键词</param>
- /// <returns></returns>
- List<UserEntity> GetList(string companyId, string departmentId, string keyword);
- List<UserEntity> GetListByDepartmentId(string departmentId);
- List<UserEntity> GetListByDepartmentIds(string departmentId);
- List<UserEntity> GetUserByDepartmentId(string departmentId);
- bool GetAny();
-
- bool GetStuAny();
- /// <summary>
- /// 用户列表(全部)
- /// </summary>
- /// <returns></returns>
- List<UserEntity> GetAllList();
- /// <summary>
- /// 修改用户信息
- /// </summary>
- void UpdateEntity(UserEntity entity);
- /// <summary>
- /// 用户列表(根据部门主键)
- /// </summary>
- /// <param name="departmentId">部门主键</param>
- /// <returns></returns>
- /// <summary>
- /// 获取分页数据
- /// </summary>
- /// <param name="companyId">公司主键</param>
- /// <param name="departmentId">部门主键</param>
- /// <param name="pagination">分页参数</param>
- /// <param name="keyword">查询关键词</param>
- /// <param name="tp">0 教师 1学生</param>
- /// <returns></returns>
- List<UserEntity> GetPageList(string companyId, string departmentId, Pagination pagination, string keyword, string tp);
- /// <summary>
- /// 用户列表(导出Excel)
- /// </summary>
- /// <returns></returns>
- void GetExportList();
- /// <summary>
- /// 用户列表(导出Excel)【学生】
- /// </summary>
- /// <returns></returns>
- void GetExportListOfStudent();
- /// <summary>
- /// 用户列表(导出Excel)【家长】
- /// </summary>
- /// <returns></returns>
- void GetExportListOfFamily();
- /// <summary>
- /// 获取实体,通过用户账号
- /// </summary>
- /// <param name="account">用户账号</param>
- /// <returns></returns>
- UserEntity GetEntityByAccount(string account);
- /// <summary>
- /// 获取实体,通过用户名
- /// </summary>
- /// <param name="account">用户账号</param>
- /// <returns></returns>
- UserEntity GetEntityByName(string account);
- /// <summary>
- /// 获取用户数据
- /// </summary>
- /// <param name="userId">用户主键</param>
- /// <returns></returns>
- UserEntity GetEntityByUserId(string userId);
- /// <summary>
- /// 获取用户列表数据
- /// </summary>
- /// <param name="userIds">用户主键串</param>
- /// <returns></returns>
- List<UserEntity> GetListByUserIds(string userIds);
- /// <summary>
- /// 获取映射数据
- /// </summary>
- /// <returns></returns>
- Dictionary<string, UserModel> GetModelMap();
- List<UserEntity> GetSaveClassMap();
-
- #endregion
-
- #region 提交数据
- /// <summary>
- /// 虚拟删除
- /// </summary>
- /// <param name="keyValue">主键</param>
- void VirtualDelete(string keyValue);
- /// <summary>
- /// 虚拟删除(批量)
- /// </summary>
- /// <param name="keyValue">主键</param>
- void VirtualDeleteBatch(string keyValue);
- /// <summary>
- /// 保存用户表单(新增、修改)
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <param name="userEntity">用户实体</param>
- /// <returns></returns>
- void SaveEntity(string keyValue, UserEntity userEntity);
- /// <summary>
- /// 修改用户登录密码
- /// </summary>
- /// <param name="newPassword">新密码(MD5 小写)</param>
- /// <param name="oldPassword">旧密码(MD5 小写)</param>
- bool RevisePassword(string newPassword, string oldPassword);
- /// <summary>
- /// 重置密码
- /// </summary>
- /// <param name="keyValue">账号主键</param>
- void ResetPassword(string keyValue, string defaultpwd);
- /// <summary>
- /// 重置密码(八位)
- /// </summary>
- /// <param name="keyValue">账号主键</param>
- void ResetPasswordEight(string keyValue, string defaultpwd);
- /// <summary>
- /// 修改用户状态
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <param name="state">状态:1-启动;0-禁用</param>
- void UpdateState(string keyValue, int state);
- /// <summary>
- /// 保存用户的设备号
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="deviceId">设备号</param>
- void UpdateDeviceId(string keyValue, string deviceId);
-
- /// <summary>
- /// 解绑微信
- /// </summary>
- void DoUnbundWeiXin(string keyValue);
- #endregion
-
- #region 验证数据
- /// <summary>
- /// 账户不能重复
- /// </summary>
- /// <param name="account">账户值</param>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- bool ExistAccount(string account, string keyValue);
- #endregion
-
- #region 扩展方法
- /// <summary>
- /// 验证登录 F_UserOnLine 0 不成功,1成功
- /// </summary>
- /// <param name="username">账号</param>
- /// <param name="password">密码 MD5 32位 小写</param>
- /// <returns></returns>
- UserEntity CheckLogin(string username, string password);
- /// <summary>
- /// 获取用户头像
- /// </summary>
- /// <param name="userId">用户ID</param>
- void GetImg(string userId);
-
- void setPassword(string userid, string pwd);
- List<UserEntity> GetStudents();
- #endregion
-
- UserEntity GetEntityByWeixinOpenId(string openid);
- void UpdateWeixinOpenId(string userEntityFUserId, string loginModelOpenid);
- void UpdateWeixinOpenIdPC(string userEntityFUserId, string loginModelOpenid);
- /// <summary>
- /// 获取超级管理员用户列表
- /// </summary>
- /// <returns></returns>
- IEnumerable<UserEntity> GetAdminList();
-
- void UpdateIp(string ip, string id);
- void GetImgForDC(string userId);
- UserEntity GetEntityByWeixinOpenIdPC(string openId);
-
- /// <summary>
- /// 修改用户的允许登录结束时间
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <param name="state">状态:1-赋值;0-重置</param>
- void UpdateAllowEndTime(string keyValue, int state);
- }
- }
|