using System; using System.Collections.Generic; using System.Text; namespace New_College.Model.ViewModels { public class CasdoorGetTokenResponse { public string access_token { get; set; } public int expires_in { get; set; } public string id_token { get; set; } public string refresh_token { get; set; } public string scope { get; set; } public string token_type { get; set; } public string error { get; set; } public string error_description { get; set; } } public class CasdoorRequest { public string grant_type { get; set; } public string client_id { get; set; } public string client_secret { get; set; } public string code { get; set; } } public class CasdoorRefeshToken { public string grant_type { get; set; } public string client_id { get; set; } public string client_secret { get; set; } public string scope { get; set; } public string refresh_token { get; set; } } public class CasdoorUserInfoDto { public string address { get; set; } public string aud { get; set; } public string email { get; set; } public string[] groups { get; set; } public string iss { get; set; } public string name { get; set; } public string phone { get; set; } public string picture { get; set; } public string preferred_username { get; set; } public string sub { get; set; } } public class CasdoorHookModel { public int id { get; set; } public string owner { get; set; } public string name { get; set; } public DateTime createdTime { get; set; } public string organization { get; set; } public string clientIp { get; set; } public string user { get; set; } public string method { get; set; } public string requestUri { get; set; } public string action { get; set; } public bool isTriggered { get; set; } public string _object { get; set; } public Extendeduser extendedUser { get; set; } } public class Extendeduser { public string owner { get; set; } public string name { get; set; } public DateTime createdTime { get; set; } public string updatedTime { get; set; } public string id { get; set; } public string type { get; set; } public string password { get; set; } public string passwordSalt { get; set; } public string displayName { get; set; } public string avatar { get; set; } public string permanentAvatar { get; set; } public string email { get; set; } public string phone { get; set; } public string location { get; set; } public object address { get; set; } public string affiliation { get; set; } public string title { get; set; } public int score { get; set; } public int ranking { get; set; } public bool isOnline { get; set; } public bool isAdmin { get; set; } public bool isForbidden { get; set; } public bool isDeleted { get; set; } public string signupApplication { get; set; } public Properties properties { get; set; } } public class Properties { public string bio { get; set; } public string checkinDate { get; set; } public string editorType { get; set; } public DateTime emailVerifiedTime { get; set; } public string fileQuota { get; set; } public string location { get; set; } public string no { get; set; } public string oauth_QQ_displayName { get; set; } public string oauth_QQ_verifiedTime { get; set; } public string oauth_WeChat_displayName { get; set; } public string oauth_WeChat_verifiedTime { get; set; } public string onlineStatus { get; set; } public string phoneVerifiedTime { get; set; } public string renameQuota { get; set; } public string tagline { get; set; } public string website { get; set; } } public class CasDoorToken { public int Id { get; set; } public string token { get; set; } public string servicetoken { get; set; } } }