package cn.iocoder.yudao.module.visit.controller.admin.customerinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 客户信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CustomerInfoRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "客户姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户姓名")
    private String customerName;

    @Schema(description = "联系方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("联系方式")
    private String contact;

    @Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("公司名称")
    private String companyName;

    @Schema(description = "性质等级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "性质等级", converter = DictConvert.class)
    @DictFormat("customer_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer customerType;

    @Schema(description = "所在地区", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("所在地区")
    private String regionFullName;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("详细地址")
    private String locationText;

    @Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal longitude;

    @Schema(description = "纬度", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal latitude;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品ID")
    private String productIds;

    @Schema(description = "部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("部门")
    @DictFormat("customer_dept")
    private String department;

    @Schema(description = "静态图", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("静态图")
    private String locationImage;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}