UserLoginPost.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using Newtonsoft.Json;
  2. using System.Collections.Generic;
  3. namespace ReleaseHelper.Models
  4. {
  5. /// <summary>
  6. /// 登录请求响应
  7. /// </summary>
  8. public class UserLoginPost
  9. {
  10. //public class LoginResponseData
  11. //{
  12. public int Uid { get; set; }
  13. [JsonProperty(PropertyName = "exp_time")]
  14. public int ExpTime { get; set; }
  15. public string Username { get; set; }
  16. [JsonProperty(PropertyName = "real_name")]
  17. public string RealName { get; set; }
  18. public int Role { get; set; }
  19. public int GroupId { get; set; }
  20. public List<LoginResponseDataGroups> Groups { get; set; }
  21. public string Mobile { get; set; }
  22. public string Token { get; set; }
  23. [JsonProperty(PropertyName = "bound_wx")]
  24. public bool BoundedWechat { get; set; }
  25. [JsonProperty(PropertyName = "grade_ids")]
  26. public int[] GradeIds { get; set; }
  27. [JsonProperty(PropertyName = "subject_ids")]
  28. public int[] SubjectIds { get; set; }
  29. [JsonProperty(PropertyName = "school_id")]
  30. public int SchoolId { get; set; }
  31. [JsonProperty(PropertyName = "campus_id")]
  32. public int CampusId { get; set; }
  33. [JsonProperty(PropertyName = "school_ids")]
  34. public int[] SchoolIds { get; set; }
  35. public LoginResponseDataSchools[] Schools { get; set; }
  36. [JsonProperty(PropertyName = "campus_ids")]
  37. public int[] CampusIds { get; set; }
  38. //}
  39. public class LoginResponseDataGroups
  40. {
  41. [JsonProperty(PropertyName = "group_id")]
  42. public int GroupId { get; set; }
  43. [JsonProperty(PropertyName = "group_name")]
  44. public string GroupName { get; set; }
  45. }
  46. public class LoginResponseDataSchools
  47. {
  48. public int Id { get; set; }
  49. public string Name { get; set; }
  50. [JsonProperty(PropertyName = "grade_ids")]
  51. public int[] GradeIds { get; set; }
  52. }
  53. //public LoginResponseData Data { get; set; }
  54. }
  55. }