mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал добавления заявок в бд
This commit is contained in:
1 parent
76c1e89f31
commit
4dfb62e9e8
16 files changed
+273
-89
No files matched your search
@@ -4,45 +4,24 @@ namespace CartriX.Shared.Classes
|
||||
{
|
||||
public class ApiRoutes
|
||||
{
|
||||
static string baseUrl = "http://localhost:5197/api";
|
||||
static public class Cartridge
|
||||
{
|
||||
public static string Add => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Add)}";
|
||||
public static string List => $"{baseUrl}/{nameof(Cartridge)}/{nameof(List)}";
|
||||
public static string Models => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Models)}";
|
||||
public static string Delete => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Delete)}";
|
||||
public static string ModelsAndManufacturers => $"{baseUrl}/{nameof(Cartridge)}/{nameof(ModelsAndManufacturers)}";
|
||||
public static string Item(int id) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Item)}";
|
||||
}
|
||||
static string baseUrl = "http://192.168.0.26:5000/api";
|
||||
static public class Report
|
||||
{
|
||||
public static string GetReportToDatePerCountPrinted => $"{baseUrl}/{nameof(Report)}/{nameof(GetReportToDatePerCountPrinted)}";
|
||||
public static string ListCausesForReplace => $"{baseUrl}/{nameof(Report)}/{nameof(ListCausesForReplace)}";
|
||||
public static string CreateRequestForReplace => $"{baseUrl}/{nameof(Report)}/{nameof(CreateRequestForReplace)}";
|
||||
}
|
||||
static public class Article
|
||||
{
|
||||
public static string ListArticlesByName => $"{baseUrl}/{nameof(Article)}/{nameof(ListArticlesByName)}";
|
||||
public static string List => $"{baseUrl}/{nameof(Article)}/{nameof(List)}";
|
||||
}
|
||||
public static class Location
|
||||
{
|
||||
public static string List => $"{baseUrl}/{nameof(Location)}/{nameof(List)}";
|
||||
}
|
||||
public static class Printer
|
||||
{
|
||||
public static string Add => $"{baseUrl}/{nameof(Printer)}/{nameof(Add)}";
|
||||
public static string Item => $"{baseUrl}/{nameof(Printer)}/{nameof(Item)}";
|
||||
public static string Models => $"{baseUrl}/{nameof(Printer)}/{nameof(Models)}";
|
||||
public static string PrintTypes => $"{baseUrl}/{nameof(Printer)}/{nameof(PrintTypes)}";
|
||||
public static string ConnectionTypes => $"{baseUrl}/{nameof(Printer)}/{nameof(ConnectionTypes)}";
|
||||
}
|
||||
public static class Snmp
|
||||
{
|
||||
public static string GetDataFromSnmp(string IpOrHostname, string Oid) => $"{baseUrl}/{nameof(Snmp)}/{nameof(GetDataFromSnmp)}?{nameof(IpOrHostname)}={IpOrHostname}&{nameof(Oid)}={Oid}";
|
||||
}
|
||||
public static class Network
|
||||
{
|
||||
public static string GetHostname(string ipAddress) => $"{baseUrl}/{nameof(Network)}/{nameof(GetHostname)}?{nameof(ipAddress)}={ipAddress}";
|
||||
public static string GetIpAddress(string hostname) => $"{baseUrl}/{nameof(Network)}/{nameof(GetIpAddress)}?{nameof(hostname)}={hostname}";
|
||||
public static string Available => $"{baseUrl}/{nameof(Network)}/{nameof(Available)}";
|
||||
}
|
||||
public static class Cartridge
|
||||
{
|
||||
public static string GetForPrinter(int PrinterId) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(GetForPrinter)}?{nameof(PrinterId)}={PrinterId}";
|
||||
public static string Item(int Id) => $"{baseUrl}/{nameof(Cartridge)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
}
|
||||
public static class Printer
|
||||
{
|
||||
public static string Item(int Id) => $"{baseUrl}/{nameof(Printer)}/{nameof(Item)}?{nameof(Id)}={Id}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user