diff --git a/src/main/java/com/cmhi/cf/restapi/config/ProtoCryptoType.java b/src/main/java/com/cmhi/cf/restapi/config/ProtoCryptoType.java index a46eb27..4cd5d31 100644 --- a/src/main/java/com/cmhi/cf/restapi/config/ProtoCryptoType.java +++ b/src/main/java/com/cmhi/cf/restapi/config/ProtoCryptoType.java @@ -1,8 +1,11 @@ package com.cmhi.cf.restapi.config; import com.cmhi.cf.common.BaseEnum; +import com.houkunlin.system.dict.starter.DictEnum; +import com.houkunlin.system.dict.starter.json.DictType; -public enum ProtoCryptoType implements BaseEnum { +@DictType(value = "ProtoCryptoType", comment = "协议加密类型") +public enum ProtoCryptoType implements BaseEnum, DictEnum { CRYPTO_NONE(0, "不加密"), CRYPTO_BASE64(1, "Base64编码"), CRYPTO_AES128(2, "AES128加密"), @@ -27,6 +30,11 @@ public enum ProtoCryptoType implements BaseEnum { return this.code; } + @Override + public String getTitle() { + return this.readme; + } + @Override public String getDescription() { return this.readme;