新火炬后端单体项目初始化代码
Lius
8 天以前 904727f59b7e10a291ce7d1576e33192a619f2f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.jeecg.common.constant;
 
/**
 * 第三方集成接口对接类型
 */
public enum ApiLogCategoryEnum {
    SAP,  //SAP接口对接
    WMS, //WMS接口对接
    FEI_SHU, //飞书接口对接
    ;
 
    public static ApiLogCategoryEnum getInstance(String code) {
        ApiLogCategoryEnum[] values = ApiLogCategoryEnum.values();
        for (ApiLogCategoryEnum value : values) {
            if (value.name().equals(code)) {
                return value;
            }
        }
        return null;
    }
}