feat:充值/扣款申请自动创建钱包
This commit is contained in:
1 parent
c9d8c1d52b
commit
9d2cf0f5d2
2 files changed
+12
-1
No files matched your search
+5
@@ -21,6 +21,11 @@ public enum WalletTypeEnum {
|
||||
|
||||
private final String desc;
|
||||
|
||||
public static WalletTypeEnum valueOfByCode(String code) {
|
||||
if (ObjectUtil.isEmpty(code)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(code, v.getCode())).findFirst().get();
|
||||
}
|
||||
|
||||
public static WalletTypeEnum descOf(String description) {
|
||||
return Arrays.stream(WalletTypeEnum.values())
|
||||
.filter(v -> ObjectUtil.equal(v.getDesc(), description))
|
||||
|
||||
Reference in new issue
Block a user