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

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.time.LocalDateTime;

@Schema(description = "管理后台 - 商品接单上限设置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductOrderLimitRespVO {

    @Schema(description = "接单上限配置的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "10334")
    @ExcelProperty("接单上限配置的唯一标识符")
    private Long id;

    @Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10171")
    @ExcelProperty("关联的商品ID")
    private Long prodId;

    @Schema(description = "限制单位'0:按自然天',1:'按自然周',2:'按自然月'", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("限制单位'0:按自然天',1:'按自然周',2:'按自然月'")
    private Boolean limitUnit;

    @Schema(description = "上限阈值", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("上限阈值")
    private Integer maxOrders;

    @Schema(description = "配置创建时间")
    @ExcelProperty("配置创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "配置最后更新时间")
    @ExcelProperty("配置最后更新时间")
    private LocalDateTime updatedAt;

}