package com.jwipc.tender.constant;

import lombok.Getter;

import java.util.List;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Getter
public enum TenderAttachmentType {
    TENDER_TECH_FILE(1, "招标单技术文件"),
    TENDER_BUSINESS_FILE(2, "招标单商务文件"),
    BID_TECH_FILE(3, "投标商务文件"),
    BID_BUSINESS_FILE(4, "投标商务文件"),
    BID_QUOTE_FILE(5, "上传报价Excel附件"),
    BID_QUOTE_PDF_FILE(6, "报价PDF盖章附件"),
    ;
    private final int value;
    private final String title;

    TenderAttachmentType(Integer value, String title) {
        this.value = value;
        this.title = title;
    }

    /**
     * 获取招标附件类型
     *
     * @return
     */
    public static List<Integer> getTenderFileTypes() {
        return List.of(TENDER_TECH_FILE.getValue(), TENDER_BUSINESS_FILE.getValue());
    }

    /**
     * 获取投标附件类型
     *
     * @return
     */
    public static List<Integer> getBidFileTypes() {
        return List.of(BID_QUOTE_FILE.getValue(), BID_BUSINESS_FILE.getValue(), BID_TECH_FILE.getValue(),
                BID_QUOTE_PDF_FILE.getValue());
    }
}
