Files
EmailBill/Entity/PushSubscriptionEntity.cs
孙诚 e250a7df2f
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 40s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
feat: 添加推送通知功能,支持订阅和发送通知
2026-01-02 12:25:44 +08:00

18 lines
407 B
C#

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; }
}