ILoginContext.cs 565 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using GxPress.EnumConst;
  3. namespace GxPress.Auth
  4. {
  5. /// <summary>
  6. /// 登录用户上下文
  7. /// </summary>
  8. public interface ILoginContext
  9. {
  10. /// <summary>
  11. /// 账户id
  12. /// </summary>
  13. int AccountId { get; }
  14. int DepartmentId { get; }
  15. /// <summary>
  16. /// 账户类型
  17. /// </summary>
  18. AccountTypeConst AccountType { get; }
  19. /// <summary>
  20. /// 获取当前用户IP
  21. /// </summary>
  22. string Ip { get; }
  23. string Name { get; }
  24. }
  25. }