feat:免密支付
This commit is contained in:
1 parent
d84bf561ac
commit
8990e31f78
9 files changed
+162
-13
No files matched your search
+29
@@ -0,0 +1,29 @@
|
||||
package com.bsd.pjcloud.hard.api.constant;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 第三方面密类型
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum HardThirdMiStatusEnum {
|
||||
|
||||
CREATE_ORDER("10", "创建订单"),
|
||||
PAY("20", "支付订单"),
|
||||
REFUND("30", "取消/退款"),
|
||||
;
|
||||
|
||||
private final String type;
|
||||
private final String description;
|
||||
|
||||
public static HardThirdMiStatusEnum valueOfByType(String type) {
|
||||
if (ObjectUtil.isEmpty(type)) return null;
|
||||
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
|
||||
}
|
||||
|
||||
}
|
||||
+26
-2
@@ -39,6 +39,12 @@ public class HardThirdMiOrderEntity extends Model<HardThirdMiOrderEntity> {
|
||||
@Schema(description = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户类型
|
||||
*/
|
||||
@Schema(description = "用户类型")
|
||||
private String userType;
|
||||
|
||||
/**
|
||||
* 授权id
|
||||
*/
|
||||
@@ -91,13 +97,31 @@ public class HardThirdMiOrderEntity extends Model<HardThirdMiOrderEntity> {
|
||||
* 订单状态
|
||||
*/
|
||||
@Schema(description = "订单状态")
|
||||
private Integer orderStatus;
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 押金
|
||||
*/
|
||||
@Schema(description = "押金")
|
||||
private int depositPrice;
|
||||
|
||||
/**
|
||||
* 订单金额
|
||||
*/
|
||||
@Schema(description = "订单金额")
|
||||
private int orderPrice;
|
||||
|
||||
/**
|
||||
* 支付金额
|
||||
*/
|
||||
@Schema(description = "支付金额")
|
||||
private int payPrice;
|
||||
|
||||
/**
|
||||
* 原始json数据
|
||||
*/
|
||||
@Schema(description = "原始json数据")
|
||||
private String orgJson;
|
||||
private String orgOrderJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
|
||||
Reference in new issue
Block a user