Сделал список OID адресов, добавил миграцию бд при запуске программы

This commit is contained in:
HK committed 2026-06-09 16:24:10 +09:00
1 parent 48e625819a
commit bd426d2647
35 files changed
+927 -46

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ namespace CartriX.Shared.Classes
public static class Location
{
public static string List => $"api/{nameof(Location)}/{nameof(List)}";
public static string ListPrinters(int LocationId) => $"api/{nameof(Location)}/{nameof(ListPrinters)}?{nameof(LocationId)}={LocationId}";
}
}
}
@@ -2,7 +2,8 @@
{
public class LocationItem
{
public int Id { get; set; }
public string Name { get; set; } = default!;
public List<Printer.PrinterItemList> Printers { get; set; } = default!;
}
public byte CountPrinters { get; set; }
}
}
@@ -4,7 +4,7 @@
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public PrinterModelItem Model { get; set; } = default!;
public string ModelName { get; set; } = default!;
public int StatusId { get; set; }
}
}