You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
50 lines
1.6 KiB
using CellularManagement.Domain.Common;
|
|
using MediatR;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace CellularManagement.Application.Features.Scenarios.Commands.UpdateScenario;
|
|
|
|
/// <summary>
|
|
/// 更新场景命令
|
|
/// </summary>
|
|
public class UpdateScenarioCommand : IRequest<OperationResult<UpdateScenarioResponse>>
|
|
{
|
|
/// <summary>
|
|
/// 场景ID
|
|
/// </summary>
|
|
[Required(ErrorMessage = "场景ID不能为空")]
|
|
[MaxLength(50, ErrorMessage = "场景ID长度不能超过50个字符")]
|
|
public string ScenarioId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 场景编码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "场景编码不能为空")]
|
|
[MaxLength(50, ErrorMessage = "场景编码长度不能超过50个字符")]
|
|
public string Code { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 场景名称
|
|
/// </summary>
|
|
[Required(ErrorMessage = "场景名称不能为空")]
|
|
[MaxLength(100, ErrorMessage = "场景名称长度不能超过100个字符")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 网络配置ID
|
|
/// </summary>
|
|
[Required(ErrorMessage = "网络配置ID不能为空")]
|
|
[MaxLength(50, ErrorMessage = "网络配置ID长度不能超过50个字符")]
|
|
public string NetworkConfigId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// 说明
|
|
/// </summary>
|
|
[MaxLength(1000, ErrorMessage = "说明长度不能超过1000个字符")]
|
|
public string? Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否禁用
|
|
/// </summary>
|
|
public bool IsDisabled { get; set; } = false;
|
|
}
|