using Microsoft.Azure.Cosmos.Table;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TEAMModelOS.SDK.Context.Attributes.Azure;
namespace TEAMModelOS.SDK.Models
{
public class XkwOAuthModel
{
}
[TableName(Name = "IESOAuth")]
public class OAuthComConfig : TableEntity
{
//PartitionKey OAuthComConfig, 单点配置
//RowKey Xkw Xkw-Test
///
/// 单点授权key
///
public string AppKey { get; set; }
///
/// 单点授权Secret
///
public string AppSecret { get; set; }
///
/// 单点回调地址
///
public string RedirectUrl { get; set; }
///
/// 单点认证授权
///
public string OAuthHost { get; set; }
///
/// 单点认证业务跳转接口
///
public string ServiceUrl { get; set; }
///
/// 单点认证平台Logo或相关图片
///
public string Picture { get; set; }
///
/// 单点认证平台名称
///
public string Name { get; set; }
//自定义域名情况
public string Domain { get; set; }
}
[TableName(Name = "IESOAuth")]
public class OAuthUser : TableEntity
{
//PartitionKey OAuthUser-xkw, OAuthUser-axy , 单点配置
//RowKey tmdid
public string OpenId { get; set; }
public string Phone { get; set; }
public string Name { get; set; }
public long Time { get; set; }
public string Type { get; set; }
public string Domain { get; set; }
}
[TableName(Name = "IESOAuth")]
public class OAuthShow : TableEntity
{
//PartitionKey OAuthShow
//RowKey {type}-tmdid,{type}-schoolId,{type}-areaId
///
/// xkw axy
///
public string Type { get; set; }
///
/// 0 禁用,1允许使用
///
public int Status { get; set; }
///
///
///个人开通 private,学校开通 school ,区级开通 area
///
public string Scope { get; set; }
///
/// tmdid schoolId areaId
///
public string Code { get; set; }
///
/// 域名
///
public string Domain { get; set; }
}
public class XkwBindModel
{
public int status { get; set; }
public string msg { get; set; }
public string accessToken { get; set; }
public string openId { get; set; }
public string userId { get; set; }
public string domain { get; set; }
}
public record ServiceModule {
public string module { get; set; }
public string url { get; set; }
}
public record OAuthCode
{
public string code { get; set; }
public string tmdid { get; set; }
public string state { get; set; }
//模块,res,item,paper
public string module { get; set; }
///
/// 0 不同意 ,1 同意
///
public int agree { get; set; }
///
/// 题目推送通知用
/// openid,paperid
///
public string openid { get; set; }
public string paperid { get; set; }
}
}