package org.dromara.app.domain.vo;

import java.time.LocalTime;
import java.util.Date;

import cn.hutool.json.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.app.domain.AppScheduleDetail;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * 排程详情视图对象 app_schedule_detail
 *
 * @author Lion Li
 * @date 2026-04-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AppScheduleDetail.class)
public class AppScheduleDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 排程id
     */
    @ExcelProperty(value = "排程id")
    private Long scheduleId;

    /**
     * 周几 1-周一 2-周二 .... 7-周日
     */
    @ExcelProperty(value = "周几 1-周一 2-周二 .... 7-周日")
    private Integer weekday;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private String  timeData;

    private String endTime;
    /**
     * 持续时间(分钟)
     */
    @ExcelProperty(value = "持续时间(分钟)")
    private String durationMin;

    /**
     * 浇水区域
     */
    @ExcelProperty(value = "浇水区域")
    private String zones;

    /**
     * 方式 0-排程  1-手动
     */
    @ExcelProperty(value = "方式 0-排程  1-手动 ")
    private String triggerType;

    private String status;


    @Data
    public static class TimeSlot {
        private String startTime;
        private Integer durationMin;
    }
}
