package com.tashow.cloud.productapi.api.product.vo.prodemergencyresponse;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.TableField;
import com.tashow.cloud.productapi.api.product.dto.ProdEmergencyResponseIntervalsDO;
import com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO;
import com.tashow.cloud.productapi.general.StringListTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;
import java.util.stream.Collectors;

@Schema(description = "管理后台 - 商品紧急响应服务设置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProdEmergencyInfoVO {


    /**
     * 紧急响应服务配置的唯一标识符
     */
    private Long id;
    /**
     * 关联的商品ID
     */
    private Long prodId;
    /**
     * 可响应时间段
     */
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> responseTimeSlots;

    @Schema(description = "紧急响应时间区间设置")
    public List<ProdEmergencyResponseIntervalsDO> prodEmergencyResponseIntervalsList;

    @Schema(description = "紧急响应黑名单日期设置")
    public List<ProdAdditionalFeeBlackVO> prodEmergencyResponseBlackList;
}