using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace WIDESEA_DTO.Task { /// /// 更新任务状态DTO - 用于封装更新任务状态所需的数据,包括任务ID和新状态信息 /// public class UpdateTaskDto { /// /// id - 任务ID,必填项,用于指定要更新的任务记录 /// [Required(ErrorMessage = "任务ID不能为空")] public int Id { get; set; } /// /// newStatus - 新状态,必填项,用于指定任务的新状态 /// [Required(ErrorMessage = "新状态不能为空")] public int NewStatus { get; set; } /// /// NextAddress - 下一地址,必填项,用于指定任务的下一位置 /// public string? NextAddress { get; set; } /// /// currentAddress - 当前地址,必填项,用于指定任务的当前位置 /// public string? CurrentAddress { get; set; } } }