package com.erp.task.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 任务更新请求
 */
@Data
public class TaskUpdateRequest {

    @NotNull(message = "任务ID不能为空")
    private Long id;

    private String taskName;

    private String description;

    private String taskGroup;

    private String cronExpression;

    private String taskClass;

    private String methodName;

    private String taskParams;

    private Boolean concurrent;

    private Boolean sync;

    private String taskType;

    private Long xxlJobId;

    private Integer maxRetries;

    private Integer retryInterval;

    private Integer timeout;

    private String alertEmails;

    private String alertPhones;

    private Boolean alertEnabled;

    private String misfirePolicy;

    private String owner;

    private String remark;
}
