package org.dromara.app.domain.vo;


import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.dromara.app.domain.AppSchedule;

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


/**
 * 日程排列视图对象 app_schedule
 *
 * @author Lion Li
 * @date 2026-04-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AppSchedule.class)
public class AppScheduleVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 设备id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 排程名称
     */
    @ExcelProperty(value = "排程名称")
    private String name;

    /**
     * 设备ids
     */
    private List<AppDeviceVo> deviceNos;
    /**
     * 状态 0-关闭 1 开启
     */
    @ExcelProperty(value = "状态 0-关闭 1 开启")
    private String status;

    @NotEmpty(message = "至少需要配置一天")
    private List<Map<String, Object>> details;


}
