initial commit
This commit is contained in:
16
Lab505.Shared/NotificationDto.cs
Normal file
16
Lab505.Shared/NotificationDto.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Lab505.Shared;
|
||||
|
||||
/// <summary>Một thông báo ngắn được push từ server xuống client qua SignalR.</summary>
|
||||
/// <param name="Message">Nội dung thông báo gốc.</param>
|
||||
/// <param name="Level">Mức độ: "info" | "success" | "error" | "warning".</param>
|
||||
/// <param name="Toast">Cho phép hiện snackbar/toast.</param>
|
||||
/// <param name="Source">Nguồn phát sinh: IMR, AMR, WF, ASRS, OPC...</param>
|
||||
/// <param name="Command">Sự kiện/chủ đề chính để render cột command.</param>
|
||||
/// <param name="Detail">Chi tiết bổ sung đi kèm command.</param>
|
||||
public record NotificationDto(
|
||||
string Message,
|
||||
string Level = "info",
|
||||
bool Toast = false,
|
||||
string? Source = null,
|
||||
string? Command = null,
|
||||
string? Detail = null);
|
||||
Reference in New Issue
Block a user