feat:充值类型列表

This commit is contained in:
dzc committed 2026-05-06 17:38:03 +08:00
1 parent f530b7b97d
commit a059b981ef
19 files changed
+635 -298

No files matched your search

@@ -0,0 +1,27 @@
package com.bsd.pjcloud.thirdparty.constant.miniplatform;
import cn.hutool.core.util.ObjectUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* app支付类型
*/
@AllArgsConstructor
@Getter
public enum AppPlusPlatformPayType {
WECHAT("10", "微信支付"),
ALI_PAY("20", "支付宝支付"),
;
private final String type;
private final String description;
public static AppPlusPlatformPayType valueOfByType(String type) {
if (ObjectUtil.isEmpty(type)) return null;
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
}
}
@@ -21,7 +21,6 @@ public class ThirdMiniAppPayDto {
@NotEmpty(message = "充值业务id不能为空")
private String bizId;
/**
* 小程序平台
*/
@@ -9,6 +9,11 @@ import lombok.Data;
@Data
public class ThirdAppPlusPayDto {
/**
* 子商户id
*/
private String subMchid;
/**
* 充值业务类型
*/