zj
2024-03-27 2c9a5fa4b53955033b1bd2ac637dea0728808551
websocketSerivce/src/main/java/org/example/enums/EStockType.java
@@ -11,6 +11,7 @@
    IN("IN","印度股票","14", StockConstant.HTTP_API, StockConstant.KEY),
    XG("XG","新股","14", StockConstant.HTTP_API, StockConstant.KEY),
    US("US","美国股票","5",StockConstant.US_API_URL,StockConstant.US_KEY);
    private String code;
    private String typeDesc;
@@ -36,6 +37,15 @@
        }
    }
    public static EStockType getEsByCode(String code) {
        for (EStockType type : EStockType.values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }
    public String getContryId() {
        return contryId;
    }