package com.cf.imes.module.system.controller.admin.organ.vo.organ;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.cf.imes.framework.excel.core.annotations.DictFormat;
import com.cf.imes.framework.excel.core.convert.DictConvert;
import com.cf.imes.module.system.enums.DictTypeConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDateTime;


/**
 * @author Beal
 */
@Data
@ExcelIgnoreUnannotated
@Builder
public class OrganExportRespVO {
    @Schema(description = "组织编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("excel.export.head.organ.id")
    private Long id;

    @Schema(description = "组织名", requiredMode = Schema.RequiredMode.REQUIRED, example = "晨丰")
    @ExcelProperty("excel.export.head.organ.name")
    private String name;

    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "晨丰")
    @ExcelProperty("excel.export.head.organ.contactName")
    private String contactName;

    @Schema(description = "联系手机", example = "15601691300")
    @ExcelProperty("excel.export.head.organ.contactMobile")
    private String contactMobile;

    @Schema(description = "组织状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "excel.export.head.organ.status", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)
    private Integer status;

    @Schema(description = "绑定域名", example = "https://www.cf.com")
    @ExcelProperty("excel.export.head.organ.website")
    private String website;

    @Schema(description = "管理员账号")
    @ExcelProperty("excel.export.head.organ.usernames")
    private String usernames;

    @Schema(description = "账号数量")
    @ExcelProperty("excel.export.head.organ.accountCount")
    private Integer accountCount;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("excel.export.head.organ.expireTime")
    private LocalDateTime expireTime;

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

    @Schema(description = "地址")
    @ExcelProperty("excel.export.head.organ.address")
    private String address;

    @Schema(description = "备注")
    private String remark;
}
