You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.3 KiB
C#
67 lines
1.3 KiB
C#
1 year ago
|
using System;
|
||
|
using SqlSugar;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
namespace Admin.Core.Model
|
||
|
{
|
||
|
///<summary>
|
||
|
///实体类
|
||
|
///</summary>
|
||
|
[Table("WeChatToken")]
|
||
|
[SugarTable( "WeChatToken", "admin_sqlite")]
|
||
|
public class WeChatToken
|
||
|
{
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id
|
||
|
/// </summary>
|
||
|
[Key]
|
||
|
[SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
|
||
|
[Required]
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 创建时间
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public DateTime CreateTime { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 有效期开始时间戳
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public int StartDate { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 有效时间结束时间戳
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public int EndDate { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 有效时长
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public int ExpiresIn { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 密钥令牌
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public string Token { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 密钥类型
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public string TokenType { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 当前密钥是否有效
|
||
|
/// </summary>
|
||
|
[Required]
|
||
|
public bool State { get; set; }
|
||
|
|
||
|
}
|
||
|
}
|