using CellularManagement.Domain.Common;
using MediatR;
using System.ComponentModel.DataAnnotations;
namespace CellularManagement.Application.Features.Devices.Commands.DeleteDevice;
///
/// 删除设备命令
///
public class DeleteDeviceCommand : IRequest>
{
///
/// 设备ID
///
[Required(ErrorMessage = "设备ID不能为空")]
public string DeviceId { get; set; }
///
/// 初始化删除设备命令
///
public DeleteDeviceCommand(string deviceId)
{
DeviceId = deviceId;
}
}