package cn.iocoder.yudao.module.member.controller.admin.user.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * 会员用户 Excel 导入 VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免用户导入有问题
public class MemberUserImportExcelVO {

    @ExcelProperty("会员名称")
    private String name;

    @ExcelProperty(value = "会员性别", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.USER_SEX)
    private Integer sex;

    @ExcelProperty(value = "出生日期")
    private LocalDate birthday;

    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty(value = "会员等级")
    private String levelName;

    @ExcelProperty(value = "证件类型",converter = DictConvert.class)
    @DictFormat(DictTypeConstants.PAPERS_TYPE)
    private String idType;

    @ExcelProperty("证件号码")
    private String idNumber;

    @ExcelProperty("地址")
    private String address;

}
