1
zj
2024-04-02 4c155dc4b01f39c4c2bd06885ea202f77912a91f
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;
    }