using System.ComponentModel.DataAnnotations;

namespace NPP.SmartSchedue.Api.Contracts.Services.Work.Input;

/// <summary>
/// 更新工作任务
/// </summary>
public class WorkOrderUpdateInput : WorkOrderAddInput
{
    /// <summary>
    /// 任务ID
    /// </summary>
    [Required(ErrorMessage = "任务ID不能为空")]
    public long Id { get; set; }

    /// <summary>
    /// 任务代码（可更新）
    /// </summary>
    [MaxLength(100, ErrorMessage = "任务代码长度不能超过100个字符")]
    public string WorkOrderCode { get; set; }
} 