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.

25 lines
618 B

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