230 lines
6.3 KiB
C#
230 lines
6.3 KiB
C#
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 JWTSSOResult<T>
|
|
{
|
|
public int code { get; set; }
|
|
public string type { get; set; }
|
|
public string message { get; set; }
|
|
public T result { get; set; }
|
|
public object extras { get; set; }
|
|
public string time { get; set; }
|
|
}
|
|
|
|
|
|
public class MinProWxOutPut
|
|
{
|
|
|
|
/// <summary>
|
|
/// 系统用户Id
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 平台类型
|
|
/// </summary>
|
|
public PlatformTypeEnum PlatformType { get; set; } = PlatformTypeEnum.微信公众号;
|
|
|
|
/// <summary>
|
|
/// OpenId
|
|
/// </summary>
|
|
public string OpenId { get; set; }
|
|
|
|
/// <summary>
|
|
/// UnionId
|
|
/// </summary>
|
|
public string? UnionId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 昵称
|
|
/// </summary>
|
|
public string? NickName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 头像
|
|
/// </summary>
|
|
public string? Avatar { get; set; }
|
|
|
|
/// <summary>
|
|
/// 手机号码
|
|
/// </summary>
|
|
public string? Mobile { get; set; }
|
|
|
|
/// <summary>
|
|
/// 性别
|
|
/// </summary>
|
|
public int? Sex { get; set; }
|
|
|
|
/// <summary>
|
|
/// 语言
|
|
/// </summary>
|
|
public string? Language { get; set; }
|
|
|
|
/// <summary>
|
|
/// 城市
|
|
/// </summary>
|
|
|
|
public string? City { get; set; }
|
|
|
|
/// <summary>
|
|
/// 省
|
|
/// </summary>
|
|
public string? Province { get; set; }
|
|
|
|
/// <summary>
|
|
/// 国家
|
|
/// </summary>
|
|
public string? Country { get; set; }
|
|
|
|
/// <summary>
|
|
/// 租户Id
|
|
/// </summary>
|
|
public long? TenantId { get; set; }
|
|
|
|
public string accessToken { 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 CasDoorUpdatePwdDto
|
|
{
|
|
public string openId { get; set; }
|
|
|
|
public string newPassword { get; set; }
|
|
public string service_token { 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 long Id { get; set; }
|
|
public string token { get; set; }
|
|
|
|
public string servicetoken { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|