package com.erp.tenant.dto.stock;

import com.erp.common.core.model.PageResponse;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 库存分页响应DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StockPageResponse {

    private PageResponse<StockItemDTO> stocks;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StockItemDTO {
        private Long id;
        private Long warehouseId;
        private String warehouseName;
        private String skuCode;
        private String skuName;
        private Integer quantity;
        private Integer lockedQuantity;
        private Integer reservedQuantity;
        private Integer defectiveQuantity;
        private Integer availableQuantity;
        private Integer warningThreshold;
        private String alertLevel;
        private Integer shortageCount;
        private String lastInboundAt;
        private String lastOutboundAt;
        private String updatedAt;
    }
}
