OCT 1. 增加协议加密类型字典
This commit is contained in:
parent
8f314bcf79
commit
d38a21094e
|
@ -1,8 +1,11 @@
|
||||||
package com.cmhi.cf.restapi.config;
|
package com.cmhi.cf.restapi.config;
|
||||||
|
|
||||||
import com.cmhi.cf.common.BaseEnum;
|
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<Integer> {
|
||||||
CRYPTO_NONE(0, "不加密"),
|
CRYPTO_NONE(0, "不加密"),
|
||||||
CRYPTO_BASE64(1, "Base64编码"),
|
CRYPTO_BASE64(1, "Base64编码"),
|
||||||
CRYPTO_AES128(2, "AES128加密"),
|
CRYPTO_AES128(2, "AES128加密"),
|
||||||
|
@ -27,6 +30,11 @@ public enum ProtoCryptoType implements BaseEnum {
|
||||||
return this.code;
|
return this.code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTitle() {
|
||||||
|
return this.readme;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return this.readme;
|
return this.readme;
|
||||||
|
|
Loading…
Reference in New Issue