feat:免密支付
This commit is contained in:
1 parent
5b2463cba0
commit
5dc6a1ebbd
31 files changed
+776
-281
No files matched your search
+10
@@ -250,6 +250,16 @@ public interface SecurityConstants {
|
||||
*/
|
||||
String APP = "mobile";
|
||||
|
||||
/**
|
||||
* 游客登录(微信,小程序)
|
||||
*/
|
||||
String VISITOR = "visitor";
|
||||
|
||||
/**
|
||||
* 游客登录(微信,小程序) openId
|
||||
*/
|
||||
String VISITOR_OPEN_ID = "openId";
|
||||
|
||||
/**
|
||||
* 用户信息
|
||||
*/
|
||||
|
||||
+18
-9
@@ -1,22 +1,31 @@
|
||||
package com.bsd.pjcloud.common.core.constant.enums;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum UserTypeEnum {
|
||||
|
||||
TOB("0", "面向后台应用"), TOC("1", "面向小程序");
|
||||
TOB("0", "面向后台应用"),
|
||||
TOC("1", "面向小程序");
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private final String status;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private final String status;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private final String description;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private final String description;
|
||||
|
||||
public static UserTypeEnum valueOfByStatus(String status) {
|
||||
if (ObjectUtil.isEmpty(status)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(status, v.getStatus())).findFirst().orElse(null);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user