feat: 添加推送通知功能,支持订阅和发送通知
This commit is contained in:
17
Entity/PushSubscriptionEntity.cs
Normal file
17
Entity/PushSubscriptionEntity.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Entity;
|
||||
|
||||
public class PushSubscriptionEntity : BaseEntity
|
||||
{
|
||||
[Required]
|
||||
public string Endpoint { get; set; } = string.Empty;
|
||||
|
||||
public string? P256DH { get; set; }
|
||||
|
||||
public string? Auth { get; set; }
|
||||
|
||||
public string? UserId { get; set; } // Optional: if you have user authentication
|
||||
|
||||
public string? UserAgent { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user