Web feed subcription

This commit is contained in:
2025-08-20 14:21:25 +08:00
parent 85fef30c7f
commit 3ee5e5367d
6 changed files with 2247 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using DysonNetwork.Pass.Account;
using DysonNetwork.Shared.Data;
namespace DysonNetwork.Sphere.WebReader;
@@ -44,4 +45,14 @@ public class WebFeed : ModelBase
public Publisher.Publisher Publisher { get; set; } = null!;
[JsonIgnore] public ICollection<WebArticle> Articles { get; set; } = new List<WebArticle>();
}
public class WebFeedSubscription : ModelBase
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid FeedId { get; set; }
public WebFeed Feed { get; set; } = null!;
public Guid AccountId { get; set; }
[NotMapped] public Account Account { get; set; } = null!;
}