From d38a21094eecd3a8ff96967b86e6045f55eab0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Tue, 6 Feb 2024 10:23:49 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E5=A2=9E=E5=8A=A0=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E7=B1=BB=E5=9E=8B=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/cmhi/cf/restapi/config/ProtoCryptoType.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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;