ql_apimanager_backend/Apimanager_backend/Models/ApiCallLog.cs

36 lines
854 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Apimanager_backend.Models
{
public class ApiCallLog
{
/// <summary>
/// 主键,自增
/// </summary>
public int Id { get; set; }
/// <summary>
/// 外键用户ID
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 外键API ID
/// </summary>
public int ApiId { get; set; }
/// <summary>
/// 调用时间,默认当前时间
/// </summary>
public DateTime CallTime { get; set; } = DateTime.UtcNow; // Timestamp
/// <summary>
/// 调用结果状态码
/// </summary>
public int CallResult { get; set; } // 调用结果状态码
//导航属性
public User? User { get; set; }
public Api? Api { get; set; }
}
}