package net.lab1024.sa.base.module.support.job.api.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 定时任务-手动执行
 *
 * @author yaozz
 * @date 2024/6/18 20:30
 */
@Data
public class SmartJobExecuteForm {

    @Schema(description = "任务id")
    @NotNull(message = "任务id不能为空")
    private Integer jobId;

    @Schema(description = "定时任务参数|可选")
    @Length(max = 2000, message = "定时任务参数最多2000字符")
    private String param;

    @Schema(hidden = true)
    private String updateName;
}
