package com.erp.tenant.dto.customer;

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

import java.math.BigDecimal;

/**
 * 客户分页响应DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CustomerPageResponse {

    private PageResponse<CustomerItemDTO> customers;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CustomerItemDTO {
        private Long id;
        private String customerCode;
        private String name;
        private String contact;
        private String phone;
        private String tel;
        private String email;
        private String address;
        private String level;
        private String category;
        private BigDecimal receivableBalance;
        private BigDecimal totalConsumed;
        private BigDecimal creditLimit;
        private Integer status;
        private String statusText;
        private String lastOrderAt;
        private String remark;
        private String createdAt;
        private String updatedAt;
    }
}
