| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using Newtonsoft.Json;
- using System.Collections.Generic;
- namespace ReleaseHelper.Models
- {
- /// <summary>
- /// 登录请求响应
- /// </summary>
- public class UserLoginPost
- {
- //public class LoginResponseData
- //{
- public int Uid { get; set; }
- [JsonProperty(PropertyName = "exp_time")]
- public int ExpTime { get; set; }
- public string Username { get; set; }
- [JsonProperty(PropertyName = "real_name")]
- public string RealName { get; set; }
- public int Role { get; set; }
- public int GroupId { get; set; }
- public List<LoginResponseDataGroups> Groups { get; set; }
- public string Mobile { get; set; }
- public string Token { get; set; }
- [JsonProperty(PropertyName = "bound_wx")]
- public bool BoundedWechat { get; set; }
- [JsonProperty(PropertyName = "grade_ids")]
- public int[] GradeIds { get; set; }
- [JsonProperty(PropertyName = "subject_ids")]
- public int[] SubjectIds { get; set; }
- [JsonProperty(PropertyName = "school_id")]
- public int SchoolId { get; set; }
- [JsonProperty(PropertyName = "campus_id")]
- public int CampusId { get; set; }
- [JsonProperty(PropertyName = "school_ids")]
- public int[] SchoolIds { get; set; }
- public LoginResponseDataSchools[] Schools { get; set; }
- [JsonProperty(PropertyName = "campus_ids")]
- public int[] CampusIds { get; set; }
- //}
- public class LoginResponseDataGroups
- {
- [JsonProperty(PropertyName = "group_id")]
- public int GroupId { get; set; }
- [JsonProperty(PropertyName = "group_name")]
- public string GroupName { get; set; }
- }
- public class LoginResponseDataSchools
- {
- public int Id { get; set; }
- public string Name { get; set; }
- [JsonProperty(PropertyName = "grade_ids")]
- public int[] GradeIds { get; set; }
- }
- //public LoginResponseData Data { get; set; }
- }
- }
|