修改接口

This commit is contained in:
2025-10-16 15:21:52 +08:00
parent 82220ce0b8
commit dd398c1c32
274 changed files with 22777 additions and 22905 deletions

View File

@@ -0,0 +1,38 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FutureMailAPI.Models
{
public class OAuthClient
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(100)]
public string ClientId { get; set; } = string.Empty;
[Required]
[MaxLength(255)]
public string ClientSecret { get; set; } = string.Empty;
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[Required]
public string RedirectUris { get; set; } = string.Empty;
[Required]
public string Scopes { get; set; } = string.Empty;
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
// 导航属性
public virtual ICollection<OAuthToken> Tokens { get; set; } = new List<OAuthToken>();
}
}