CurrentUser.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace wispro.sp.web.Models
  6. {
  7. public class TagType
  8. {
  9. public string Key { get; set; }
  10. public string Label { get; set; }
  11. }
  12. public class GeographicType
  13. {
  14. public TagType Province { get; set; }
  15. public TagType City { get; set; }
  16. }
  17. public class CurrentUser
  18. {
  19. public string Name { get; set; }
  20. public string Avatar { get; set; }
  21. public int? Userid { get; set; }
  22. public NoticeType[] Notice { get; set; } = { };
  23. public string Email { get; set; }
  24. public string Signature { get; set; }
  25. public string Title { get; set; }
  26. public string Group { get; set; }
  27. public TagType[] Tags { get; set; } = { };
  28. public int NotifyCount { get; set; }
  29. public int UnreadCount { get; set; }
  30. public string Country { get; set; }
  31. public GeographicType Geographic { get; set; }
  32. public string Address { get; set; }
  33. public string Phone { get; set; }
  34. public List<string> Roles { get; set; } = new List<string>();
  35. }
  36. public class UserLiteItem
  37. {
  38. public string Avater { get; set; }
  39. public string Title { get; set; }
  40. public string Description { get; set; }
  41. }
  42. }