package com.railway.system.domain;

import com.railway.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
/**
 * 系统计划任务表
 * @author author 2021-12-09
 */
@Data
@ApiModel("系统计划任务表")
@EqualsAndHashCode(callSuper = true)
public class SysScheduledTask extends BaseEntity{

    @ApiModelProperty(value = "主键", hidden = true)
    private Long id;

    @ApiModelProperty(value = "任务名称")
    @Length(min = 1, max = 50, message = "【任务名称】长度必须介于 {min} 和 {max} 之间")
    private String name;

    @ApiModelProperty(value = "任务cron")
    @Length(min = 1, max = 30, message = "【任务cron】长度必须介于 {min} 和 {max} 之间")
    private String cron;

    @ApiModelProperty(value = "1开启，0关闭")
    private Integer open;

    public SysScheduledTask() {
    }

}