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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
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 InfoRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("主键ID")
    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("拜访日期")
    private LocalDate visitDate;

    @Schema(description = "性质等级", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("性质等级")
    private Integer customerStatus;

    @Schema(description = "拜访品种（多选，逗号分隔）")
    @ExcelProperty("拜访品种（多选，逗号分隔）")
    private String visitProductIds;

    @Schema(description = "拜访方式（字典）")
    @ExcelProperty(value = "拜访方式（字典）", converter = DictConvert.class)
    @DictFormat("visit_method") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer visitMethod;

    @Schema(description = "拜访类型（字典）", example = "2")
    @ExcelProperty(value = "拜访类型（字典）", converter = DictConvert.class)
    @DictFormat("visit_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer visitType;

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

}