♻️ Move most of models to the Shared package

This commit is contained in:
2025-07-06 22:34:52 +08:00
parent cb4acbb3fc
commit 65450e8511
170 changed files with 679 additions and 101121 deletions

View File

@ -1,5 +1,6 @@
using System.Text;
using System.Text.Json;
using DysonNetwork.Shared.Models;
using DysonNetwork.Sphere.Connection;
using EFCore.BulkExtensions;
using Microsoft.EntityFrameworkCore;
@ -24,7 +25,7 @@ public class NotificationService(
}
public async Task<NotificationPushSubscription> SubscribePushNotification(
Account account,
Shared.Models.Account account,
NotificationPushProvider provider,
string deviceId,
string deviceToken
@ -70,7 +71,7 @@ public class NotificationService(
}
public async Task<Notification> SendNotification(
Account account,
Shared.Models.Account account,
string topic,
string? title = null,
string? subtitle = null,
@ -176,7 +177,7 @@ public class NotificationService(
await _PushNotification(notification, subscribers);
}
public async Task SendNotificationBatch(Notification notification, List<Account> accounts, bool save = false)
public async Task SendNotificationBatch(Notification notification, List<Shared.Models.Account> accounts, bool save = false)
{
if (save)
{