Add bumper variant management: implement API endpoints for adding, updating, and removing bumper text variants, enhance data models to support variant details, and update scheduling logic to utilize variants. Refactor related components for improved bumper template handling and ensure proper error management for variant operations.
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace TeleWave.Application.Broadcast.Bumpers;
|
||||
|
||||
public sealed class UpdateBumperTextVariantCommandValidator
|
||||
: AbstractValidator<UpdateBumperTextVariantCommand>
|
||||
{
|
||||
public UpdateBumperTextVariantCommandValidator()
|
||||
{
|
||||
RuleFor(x => x.Name).NotEmpty().MaximumLength(64);
|
||||
RuleFor(x => x.NowLabel).MaximumLength(64);
|
||||
RuleFor(x => x.NextLabel).MaximumLength(64);
|
||||
RuleFor(x => x.Line1).MaximumLength(120);
|
||||
RuleFor(x => x.Line2).MaximumLength(120);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user