package com.yc.ship.module.product.controller.admin.productSpu.otherRuleVO;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 产品其他规则 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductOtherRuleRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26269")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "是否自动开始销售")
    @ExcelProperty("是否自动开始销售")
    private Integer autoStartSale;

    @Schema(description = "自动开始销售类型 0每天 1每月 2不限", example = "2")
    @ExcelProperty("自动开始销售类型 0每天 1每月 2不限")
    private Integer autoStartSaleType;

    @Schema(description = "自动开始销售时间")
    @ExcelProperty("自动开始销售时间")
    private String autoStartSaleTime;

    @Schema(description = "是否自动停止销售")
    @ExcelProperty("是否自动停止销售")
    private Integer autoEndSale;

    @Schema(description = "自动停止销售类型 0每天 1每月 2不限", example = "1")
    @ExcelProperty("自动停止销售类型 0每天 1每月 2不限")
    private Integer autoEndSaleType;

    @Schema(description = "自动停止销售时间")
    @ExcelProperty("自动停止销售时间")
    private String autoEndSaleTime;

    @Schema(description = "可购买几天内的产品")
    @ExcelProperty("可购买几天内的产品")
    private Integer canBuyDay;

    @Schema(description = "电子合同模版id（无id表示不需要合同）", example = "32230")
    @ExcelProperty("电子合同模版id（无id表示不需要合同）")
    private String contractId;

    @Schema(description = "是否买保险")
    @ExcelProperty("是否买保险")
    private Integer needInsurance;

    @Schema(description = "保险编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("保险编码")
    private String insuranceCode;

    @Schema(description = "保险金额")
    private BigDecimal insuranceAmount;

    @Schema(description = "是否推荐")
    @ExcelProperty("是否推荐")
    private Integer isRecommend;

    @Schema(description = "控制产品上架类型 0发布上架 1自动控制", example = "2")
    @ExcelProperty("控制产品上架类型 0发布上架 1自动控制")
    private Integer ctrlStatusType;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}