package com.dsk.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.dsk.common.annotation.ExcelDictFormat;
import com.dsk.common.convert.ExcelDictConvert;
import com.dsk.system.domain.SysTenant;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sxk
 * @date 2023.08.22
 * @description:
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysTenant.class)
public class SysEnterpriseVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 企业编号
     */
    @ExcelProperty(value = "企业编号")
    private String enterpriseId;

    /**
     * 企业名称
     */
    @ExcelProperty(value = "企业名称")
    private String companyName;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 过期时间
     */
    @ExcelProperty(value = "过期时间")
    private Date expireTime;

    /**
     * 企业方案编号
     */
    @ExcelProperty(value = "企业方案编号")
    private Long programId;

    /**
     * 用户名称
     */
    @ExcelProperty(value = "用户名称")
    private String username;

    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号码")
    private String phone;

    /**
     * 企业规模
     */
    @ExcelProperty(value = "企业规模")
    private String enterpriseScale;

    /**
     * 企业状态（0已过期｜1续约）
     */
    @ExcelProperty(value = "企业状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=已过期,1=续约")
    private String status;

}
