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 io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

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

    @QueryField(field = "code", type = QueryType.EQUAL)
    @Schema(description = "分类编码（精确查询）")
    private String code;

    @QueryField(field = "enabled", type = QueryType.EQUAL)
    @Schema(description = "是否启用")
    private Boolean enabled;
}

