package com.qqchen.deploy.backend.schedule.query;

import com.qqchen.deploy.backend.framework.annotation.QueryField;
import com.qqchen.deploy.backend.framework.enums.QueryType;
import com.qqchen.deploy.backend.framework.query.BaseQuery;
import com.qqchen.deploy.backend.schedule.enums.ScheduleJobStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 定时任务查询条件
 * 
 * @author qichen
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "定时任务查询条件")
public class ScheduleJobQuery extends BaseQuery {

    @QueryField(field = "jobName", type = QueryType.LIKE)
    @Schema(description = "任务名称（模糊查询）")
    private String jobName;

    @QueryField(field = "categoryId", type = QueryType.EQUAL)
    @Schema(description = "任务分类ID")
    private Long categoryId;

    @QueryField(field = "status", type = QueryType.EQUAL)
    @Schema(description = "任务状态")
    private ScheduleJobStatusEnum status;

    @QueryField(field = "beanName", type = QueryType.LIKE)
    @Schema(description = "Bean名称（模糊查询）")
    private String beanName;
}

