package com.nq.config; public enum StockType { A("hs", "A股"), HK("hk", "港股"); private String code; private String msg; StockType(String code, String msg) { this.code = code; this.msg = msg; } public String getCode() { return this.code; } public String getMsg() { return this.msg; } }