using Newtonsoft.Json; using System.Collections.Generic; namespace ReleaseHelper.Models { /// /// 登录请求响应 /// 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 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; } } }