WebPush-and-photo-upload-fixes

This commit is contained in:
sysadmin
2025-09-01 06:01:05 +01:00
parent 5eb7647faf
commit c8a55c143b
16 changed files with 2000 additions and 6 deletions

View File

@@ -0,0 +1,40 @@
using System.ComponentModel.DataAnnotations;
namespace LittleShop.DTOs;
public class PushSubscriptionDto
{
[Required]
public string Endpoint { get; set; } = string.Empty;
[Required]
public string P256DH { get; set; } = string.Empty;
[Required]
public string Auth { get; set; } = string.Empty;
}
public class PushNotificationDto
{
[Required]
public string Title { get; set; } = string.Empty;
[Required]
public string Body { get; set; } = string.Empty;
public string? Icon { get; set; }
public string? Badge { get; set; }
public string? Url { get; set; }
public object? Data { get; set; }
}
public class TestPushNotificationDto
{
[Required]
public string Title { get; set; } = string.Empty;
[Required]
public string Body { get; set; } = string.Empty;
public string? UserId { get; set; }
}