package top.continew.admin.job.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import top.continew.admin.job.enums.JobStatusEnum;

import java.io.Serial;
import java.io.Serializable;

/**
 * 修改任务状态信息
 *
 * @author KAI
 * @author Charles7c
 * @since 2024/6/27 9:24
 */
@Data
@Schema(description = "修改任务状态信息")
public class JobStatusReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 任务状态
     */
    @Schema(description = "任务状态", example = "1")
    @NotNull(message = "任务状态非法")
    private JobStatusEnum jobStatus;

    /**
     * ID
     */
    @Schema(hidden = true)
    private Long id;
}
