Подлатал API и Web

This commit is contained in:
Hukuta committed 2026-05-06 22:32:22 +09:00
1 parent ae561f8311
commit 34868984fb
26 files changed
+435 -104

No files matched your search

@@ -0,0 +1,10 @@
using CartriX.Shared.DTOs.Printer;
namespace CartriX.Shared.DTOs.Location
{
public class LocationDtoNameAndPrinters
{
public string name { get; set; } = null!;
public List<PrinterDtoWithNameAndId> printers { get; set; } = null!;
}
}
@@ -1,12 +1,11 @@
using CartriX.Shared.Models;
namespace CartriX.Shared.DTOs.Printer
namespace CartriX.Shared.DTOs.Printer
{
public class CreatePrinterRequestDto
{
public string name { get; set; } = null!;
public string hostname { get; set; } = null!;
public string ipAddress { get; set; } = null!;
public string locationValue { get; set; } = null!;
public string modelName { get; set; } = null!;
public string locationValue { get; set; } = null!;
}
}
+2 -6
View File
@@ -1,12 +1,8 @@
using CartriX.Shared.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace CartriX.Shared.DTOs.Printer
namespace CartriX.Shared.DTOs.Printer
{
public class PrinterDto
{
public string name { get; set; } = null!;
public string hostname { get; set; } = null!;
public string ipAddress { get; set; } = null!;
public string locationName { get; set; } = null!;
@@ -0,0 +1,8 @@
namespace CartriX.Shared.DTOs.Printer
{
public class PrinterDtoWithNameAndId
{
public int id { get; set; }
public string name { get; set; } = null!;
}
}
@@ -1,6 +0,0 @@
namespace CartriX.Shared.DTOs.Printer
{
internal class PrinterInformation
{
}
}
@@ -1,7 +0,0 @@
namespace CartriX.Shared.DTOs.Printer
{
public class PrinterName
{
public string Name { get; set; } = default!;
}
}