feat(api): в work getAll добавлен фильр по имени. ApplicationController GetAll + filter
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
18
PARR.API/Contracts/V1/Requests/Queries/ApplicationQuery.cs
Normal file
18
PARR.API/Contracts/V1/Requests/Queries/ApplicationQuery.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,10 @@
|
||||
/// С иерархией до процесса
|
||||
/// </summary>
|
||||
public bool AllParents { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Поиск по имени. Например: "прочее"
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user