IUserManage.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Central.Control.Domain;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace MES.Production.Service.IService
  7. {
  8. /// <summary>
  9. /// Service层基本用户信息(登录)接口
  10. /// add 作者: 季健国 QQ:181589805 by 2016-05-22
  11. /// </summary>
  12. public interface IUserManage : IRepository<SYS_USER>
  13. {
  14. /// <summary>
  15. /// 管理用户登录验证,并返回用户信息与权限集合
  16. /// </summary>
  17. SYS_USER UserLogin(string username, string password);
  18. /// <summary>
  19. /// 是否超级管理员
  20. /// </summary>
  21. bool IsAdmin(int userId);
  22. /// <summary>
  23. /// 根据用户ID获取用户名,不存在返回空
  24. /// </summary>
  25. string GetUserName(int id);
  26. /// <summary>
  27. /// 根据用户ID获取本职部门名称
  28. /// </summary>
  29. string GetUserDptName(int id);
  30. /// <summary>
  31. /// 删除用户
  32. /// </summary>
  33. bool Remove(int userId);
  34. /// <summary>
  35. /// 根据用户构造用户基本信息
  36. /// </summary>
  37. Account GetAccountByUser(SYS_USER user);
  38. /// <summary>
  39. /// 从Cookie中获取用户信息
  40. /// </summary>
  41. Account GetAccountByCookie();
  42. }
  43. }