wanshenmean
3 天以前 ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b
Code/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Task/UpdateTaskDto.cs
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace WIDESEA_DTO
namespace WIDESEA_DTO.Task
{
    /// <summary>
    /// 更新任务状态DTO - 用于封装更新任务状态所需的数据,包括任务ID和新状态信息
@@ -14,11 +11,23 @@
        /// <summary>
        /// id - 任务ID,必填项,用于指定要更新的任务记录
        /// </summary>
        [Required(ErrorMessage = "任务ID不能为空")]
        public int Id { get; set; }
        /// <summary>
        /// newStatus - 新状态,必填项,用于指定任务的新状态
        /// </summary>
        [Required(ErrorMessage = "新状态不能为空")]
        public int NewStatus { get; set; }
        /// <summary>
        /// NextAddress - 下一地址,必填项,用于指定任务的下一位置
        /// </summary>
        public string? NextAddress { get; set; }
        /// <summary>
        /// currentAddress - 当前地址,必填项,用于指定任务的当前位置
        /// </summary>
        public string? CurrentAddress { get; set; }
    }
}