feat(api): jobGroup при создании и обновлении принимает поле GroupingUnitFieldId. Валидации. Контроллеры KiiUnitController, RegionalEkPtkGroupController

This commit is contained in:
Mikhail Trubnikov
2025-12-19 10:48:41 +10:00
parent cef0e15077
commit a03b882880
9 changed files with 222 additions and 6 deletions

View File

@@ -517,6 +517,16 @@
public const string GetAll = Base + "/shortcodes/";
}
public static class RegionalEkPtkGroup
{
public const string GetAll = Base + "/regional-ek-ptk-groups/";
}
public static class KiiUnit
{
public const string GetAll = Base + "/kii-units/";
}
}
}

View File

@@ -8,6 +8,11 @@
public Guid GroupTypeId { get; set; }
/// <summary>
/// Поле по которому групиируем, если тип - ГРУППА
/// </summary>
public Guid? GroupingUnitFieldId { get; set; }
public required string ShortDescription { get; set; }
public required string FullDescription { get; set; }

View File

@@ -20,6 +20,11 @@
public required JobGroupTypeResponse GroupType { get; set; }
/// <summary>
/// По какому полю грппируется, если используется тип ГРУППИРОВКА
/// </summary>
public FieldResponse? GroupingUnitField { get; set; }
// public bool IsAutoDistributionEnabled { get; set; }
// public bool IsAgent { get; set; }