Files
TeleWave/backend/src/TeleWave.Application/Programming/Groups/GroupErrors.cs
T
Leonid Pershin 91af589547
ci / build-backend (push) Successful in 2m30s
ci / build-frontend (push) Successful in 43s
ci / tests (push) Successful in 2m36s
ci / sonar (push) Failing after 33s
Implement dynamic group management features with exclusions and mode handling
Enhanced the group management system by introducing dynamic group capabilities, allowing for the exclusion of elements from dynamic groups. Updated the Group and GroupItem models to support a new GroupMode, enabling the distinction between static and dynamic groups. Implemented API endpoints for excluding elements and updated related services to handle group composition based on the selected mode. Improved the frontend to accommodate these changes, including new API functions and UI components for managing exclusions and group modes, thereby enhancing the overall user experience in group management.
2026-07-27 05:03:09 +03:00

44 lines
1.8 KiB
C#

using TeleWave.Application.Common.Models;
namespace TeleWave.Application.Programming.Groups;
public static class GroupErrors
{
public static readonly Error NotFound = Error.NotFound("Groups.NotFound", "Группа не найдена.");
public static readonly Error ItemNotFound = Error.NotFound(
"Groups.ItemNotFound",
"Позиция в группе не найдена."
);
public static readonly Error ElementNotFound = Error.NotFound(
"Groups.ElementNotFound",
"Шоу или коллекция не найдены."
);
public static readonly Error InUse = Error.Conflict(
"Groups.InUse",
"Группа используется в сетке: на неё ссылается слот, врезка стыка или запасная группа шаблона."
);
public static readonly Error FilterNotSet = Error.Validation(
"Groups.FilterNotSet",
"У группы не задано правило набора."
);
public static readonly Error ExclusionsForDynamicOnly = Error.Validation(
"Groups.ExclusionsForDynamicOnly",
"Исключения есть только у динамической группы — в статической состав правится списком."
);
public static readonly Error SuggestionNotFound = Error.NotFound(
"Groups.SuggestionNotFound",
"Предложение устарело — библиотека изменилась. Обновите список предложений."
);
public static readonly Error SuggestionAlreadyCreated = Error.Conflict(
"Groups.SuggestionAlreadyCreated",
"Группа с таким названием уже есть."
);
}