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

import com.tashow.cloud.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 商品接单上限设置分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductOrderLimitPageReqVO extends PageParam {

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

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

    @Schema(description = "上限阈值")
    private Integer maxOrders;

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

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

}