♻️ Finish centerlizing the data models

This commit is contained in:
2025-09-27 15:14:05 +08:00
parent e70d8371f8
commit 9ce31c4dd8
167 changed files with 780 additions and 42880 deletions

View File

@@ -32,7 +32,7 @@ public class NotificationController(
[HttpGet]
[Authorize]
public async Task<ActionResult<List<Notification>>> ListNotifications(
public async Task<ActionResult<List<SnNotification>>> ListNotifications(
[FromQuery] int offset = 0,
// The page size set to 5 is to avoid the client pulled the notification
// but didn't render it in the screen-viewable region.
@@ -146,7 +146,7 @@ public class NotificationController(
)
{
await nty.SendNotificationBatch(
new Notification
new SnNotification
{
CreatedAt = SystemClock.Instance.GetCurrentInstant(),
UpdatedAt = SystemClock.Instance.GetCurrentInstant(),