具备界面基础功能
This commit is contained in:
34
SHH.CameraDashboard/Services/WebApis/Routes.cs
Normal file
34
SHH.CameraDashboard/Services/WebApis/Routes.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace SHH.CameraDashboard
|
||||
{
|
||||
public static class WebApiRoutes
|
||||
{
|
||||
// 摄像头模块
|
||||
public static class Cameras
|
||||
{
|
||||
public const string Root = "/api/Cameras";
|
||||
public static string ById(string id) => $"{Root}/{id}";
|
||||
public static string BindHandle(string id) => $"{Root}/{id}/bind-handle";
|
||||
public static string Power(string id) => $"{Root}/{id}/power";
|
||||
public static string Options(string id) => $"{Root}/{id}/options";
|
||||
public static string Subscriptions(string id) => $"{Root}/{id}/subscriptions";
|
||||
public static string Logs(string id) => $"{Root}/{id}/logs";
|
||||
public static string Processing(string id) => $"{Root}/{id}/processing";
|
||||
public static string Time(string id) => $"{Root}/{id}/time";
|
||||
public static string Reboot(string id) => $"{Root}/{id}/reboot";
|
||||
public static string Ptz(string id) => $"{Root}/{id}/ptz";
|
||||
}
|
||||
|
||||
// 监控模块
|
||||
public static class Monitor
|
||||
{
|
||||
public const string Root = "/api/Monitor";
|
||||
public const string All = $"{Root}/all";
|
||||
public const string Dashboard = $"{Root}/dashboard";
|
||||
public const string SystemLogs = $"{Root}/system-logs";
|
||||
public const string UpdateProcessing = $"{Root}/update-processing";
|
||||
public static string ById(string id) => $"{Root}/{id}";
|
||||
public static string Snapshot(string id) => $"{Root}/snapshot/{id}";
|
||||
public static string Diagnose(string id) => $"{Root}/diagnose/{id}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user