Update scheduling parameters and refactor channel endpoints: extend HorizonDays to 7 and RetentionDays to 90 in appsettings.json. Consolidate channel-related endpoint logic by removing obsolete files and enhancing the ShowEndpoints with audience and genre management capabilities. Improve error handling and streamline command handlers for channel operations.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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 ElementAlreadyAdded = Error.Conflict(
|
||||
"Groups.ElementAlreadyAdded",
|
||||
"Этот элемент уже входит в группу."
|
||||
);
|
||||
|
||||
public static readonly Error FilterNotSet = Error.Validation(
|
||||
"Groups.FilterNotSet",
|
||||
"У группы не задано правило набора."
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user