package com.erp.tenant.dto.order;

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

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单分页响应DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderPageResponse {

    private PageResponse<OrderItemDTO> orders;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class OrderItemDTO {
        private Long id;
        private String orderSn;
        private String platformOrderSn;
        private String platform;
        private String erpStatus;
        private String erpStatusText;
        private String receiverName;
        private String receiverPhone;
        private String receiverAddress;
        private Long warehouseId;
        private String warehouseName;
        private BigDecimal totalAmount;
        private Integer itemCount;
        private String createdAt;
        private String updatedAt;
    }
}
