feat:免密支付
This commit is contained in:
1 parent
5b2463cba0
commit
5dc6a1ebbd
31 files changed
+776
-281
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
package com.bsd.pjcloud.admin.api.constant.visitor;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 访客类型
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum VisitorBizEnum {
|
||||
|
||||
WECHAT("10", "微信小程序"),
|
||||
ALIPAY("20", "支付宝小程序"),
|
||||
;
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static VisitorBizEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user