package org.xyzh.crontab.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson2.annotation.JSONField;

@Data
@NoArgsConstructor
public class CrontabItem {

    private String name;
    private List<CrontabMethod> methods;

    @Data
    public static  class CrontabMethod {
        private String name;
        private String clazz;
        private String excuete_method;
        private String path;
        private List<CrontabParam> params;
    }

    @Data
    public static class CrontabParam {
        private String name;
        private String description;
        private String type;
        private Object value;
        private Boolean required;
    }
}
