qwj
2023-08-02 67965cce30e900f9b6091170745ecf115f64e23d
DocumentServiceAPI.Model/JwtInfo.cs
New file
@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DocumentServiceAPI.Model
{
    /// <summary>
    /// Jwt信息
    /// </summary>
    public class JwtInfo
    {
        /// <summary>
        /// 员工ITCODE
        /// </summary>
        public int?   EID { get; set; }
        /// <summary>
        /// 租户ID
        /// </summary>
        public int ?TID { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public int? UID { get; set; }
        /// <summary>
        /// Id识别号,主要用于判断单端登录
        /// </summary>
        public  Guid? JID { get; set; }
        /// <summary>
        /// 登录源
        /// </summary>
        public LogInFrom LogInSource { get; set; }
    }
    /// <summary>
    /// 登录源 类型
    /// </summary>
    public enum LogInFrom
    {
        /// <summary>
        /// PCAPP登录
        /// </summary>
        [Description( "PCAPP登录")]
        PC,
        /// <summary>
        /// APP端登录
        /// </summary>
        [Description("APP端登录")]
        APP,
        /// <summary>
        /// 微信小程序登录
        /// </summary>
        [Description("微信小程序登录")]
        WeChat,
        /// <summary>
        /// 页面端登录
        /// </summary>
          [Description("页面端登录")]
        Web
    }
}