FileChechStatusEnum.java 769 Bytes
Newer Older
刘基明's avatar
刘基明 committed
1 2 3 4 5 6 7 8 9 10
package com.tanpu.community.api.enums;

import org.apache.commons.collections4.SetUtils;

import java.util.HashSet;

public enum FileChechStatusEnum {

    INIT(0,"初始化"),
    PASS(1,"审核通过"),
刘基明's avatar
刘基明 committed
11
    FAILED(2,"审核不通过");
刘基明's avatar
刘基明 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


    public static final HashSet<String> ossTypeSet = SetUtils.hashSet("jpg", "jpeg", "png", "txt");

    private Integer code;
    private String type;


    FileChechStatusEnum(Integer code, String type) {
        this.code = code;
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}