| | |
| | | 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和新状态信息 |
| | |
| | | /// <summary> |
| | | /// id - 任务ID,必填项,用于指定要更新的任务记录 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "任务ID不能为空")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// newStatus - 新状态,必填项,用于指定任务的新状态 |
| | | /// </summary> |
| | | [Required(ErrorMessage = "新状态不能为空")] |
| | | public int NewStatus { get; set; } |
| | | } |
| | | } |