feat(api): в work getAll добавлен фильр по имени. ApplicationController GetAll + filter

This commit is contained in:
Mikhail Trubnikov
2024-04-03 15:21:47 +10:00
parent a92bbf1899
commit 693acc4cbc
5 changed files with 108 additions and 5 deletions

View File

@@ -209,7 +209,6 @@
#endregion
#region Наряды
public static class Order
@@ -222,7 +221,6 @@
#endregion
#region TNK
public static class Process
@@ -298,6 +296,10 @@
}
#endregion
public static class Application
{
public const string GetAll = Base + "/applications/";
}
public static class EkStatus
{

View File

@@ -0,0 +1,18 @@
using PARR.DAL.Contracts;
namespace PARR.API.Contracts.V1.Requests.Queries
{
public class ApplicationQuery
{
/// <summary>
/// Поиск по имени. Например: "tomcat"
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Поиск по типу: 0 - APP, 1 - OS, 2 - DB
/// </summary>
public ApplicationTypesEnum? Type { get; set; }
}
}

View File

@@ -6,5 +6,10 @@
/// С иерархией до процесса
/// </summary>
public bool AllParents { get; set; } = false;
/// <summary>
/// Поиск по имени. Например: "прочее"
/// </summary>
public string? Name { get; set; }
}
}