|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.Module.Core.Data
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 对外接口授权表
|
|
|
|
|
///</summary>
|
|
|
|
|
[SugarTable("sys_api_auth", "对外接口授权表")]
|
|
|
|
|
public class SysApiAuth : BaseModelV2<long>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 接口代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "接口代码", IsNullable = true, Length = 500)]
|
|
|
|
|
public string? ApiCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 接口名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "接口名称", IsNullable = true, Length = 1000)]
|
|
|
|
|
public string? ApiName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 接口KEY
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "接口KEY", IsNullable = true, Length = 100)]
|
|
|
|
|
public string? ApiKey { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 接口秘钥
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "接口秘钥", IsNullable = true, Length = 200)]
|
|
|
|
|
public string? ApiSecret { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 有效截止日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "有效截止日期", IsNullable = true)]
|
|
|
|
|
public DateTime? ExpireDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 禁用标志
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "禁用标志", IsNullable = false, Length = 1)]
|
|
|
|
|
public bool IsDisable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "用户ID", IsNullable = true)]
|
|
|
|
|
public long? UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "用户代码", IsNullable = true, Length = 40)]
|
|
|
|
|
public string? UserCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户姓名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "用户姓名", IsNullable = true, Length = 60)]
|
|
|
|
|
public string? UserName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SqlSugar.SugarColumn(ColumnDescription = "租户Id")]
|
|
|
|
|
public long? TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 公司id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "公司id", IsNullable = true, Length = 100)]
|
|
|
|
|
public string? CompanyId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|