mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-03 11:06:46 +00:00
ref 一些接口参数的修改
This commit is contained in:
@@ -16,12 +16,8 @@ public enum ChannelEnum {
|
||||
|
||||
/** 支付宝 - 直连商户 */
|
||||
ALI("ali_pay"),
|
||||
/** 支付宝 - 服务商商户 */
|
||||
ALI_SERVICE("ali_service"),
|
||||
/** 微信支付 */
|
||||
WECHAT("wechat_pay"),
|
||||
/** 微信支付服务商 */
|
||||
WECHAT_SERVICE("wechat_service"),
|
||||
/** 云闪付 */
|
||||
UNION_PAY("union_pay"),
|
||||
|
||||
|
@@ -0,0 +1,74 @@
|
||||
package org.dromara.daxpay.core.param.allocation;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.dromara.daxpay.core.enums.AllocReceiverTypeEnum;
|
||||
import org.dromara.daxpay.core.enums.AllocRelationTypeEnum;
|
||||
import org.dromara.daxpay.core.enums.ChannelEnum;
|
||||
import org.dromara.daxpay.core.param.PaymentCommonParam;
|
||||
|
||||
|
||||
/**
|
||||
* 分账接收者添加参数
|
||||
* @author xxm
|
||||
* @since 2024/5/20
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "分账接收者添加参数")
|
||||
public class AllocReceiverAddParam extends PaymentCommonParam {
|
||||
|
||||
@Schema(description = "接收者编号, 需要保证唯一")
|
||||
@NotBlank(message = "接收者编号必填")
|
||||
@Size(max = 32, message = "接收者编号不可超过32位")
|
||||
private String receiverNo;
|
||||
|
||||
/**
|
||||
* 所属通道
|
||||
* @see ChannelEnum
|
||||
*/
|
||||
@Schema(description = "所属通道")
|
||||
@NotBlank(message = "所属通道必填")
|
||||
@Size(max = 20, message = "所属通道不可超过20位")
|
||||
private String channel;
|
||||
|
||||
/**
|
||||
* 分账接收方类型 根据不同类型的通道进行传输
|
||||
* @see AllocReceiverTypeEnum
|
||||
*/
|
||||
@Schema(description = "分账接收方类型")
|
||||
@NotBlank(message = "分账接收方类型必填")
|
||||
@Size(max = 20, message = "分账接收方类型不可超过20位")
|
||||
private String receiverType;
|
||||
|
||||
/** 接收方账号 */
|
||||
@Schema(description = "接收方账号")
|
||||
@NotBlank(message = "接收方账号必填")
|
||||
@Size(max = 100, message = "接收方账号不可超过100位")
|
||||
private String receiverAccount;
|
||||
|
||||
/** 接收方姓名 */
|
||||
@Schema(description = "接收方姓名")
|
||||
@Size(max = 100, message = "接收方姓名不可超过50位")
|
||||
private String receiverName;
|
||||
|
||||
/**
|
||||
* 分账关系类型
|
||||
* @see AllocRelationTypeEnum
|
||||
*/
|
||||
@Schema(description = "分账关系类型")
|
||||
@NotBlank(message = "分账关系类型必填")
|
||||
@Size(max = 20, message = "分账关系类型不可超过20位")
|
||||
private String relationType;
|
||||
|
||||
/** 关系名称 关系类型为自定义是填写 */
|
||||
@Schema(description = "关系名称")
|
||||
@Size(max = 50, message = "关系名称不可超过50位")
|
||||
private String relationName;
|
||||
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
package org.dromara.daxpay.core.param.allocation;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import jakarta.validation.constraints.Size;
|
||||
import org.dromara.daxpay.core.param.PaymentCommonParam;
|
||||
|
||||
/**
|
||||
* 分账接收者删除参数
|
||||
* @author xxm
|
||||
* @since 2024/5/20
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "分账接收者删除参数")
|
||||
public class AllocReceiverRemoveParam extends PaymentCommonParam {
|
||||
|
||||
@Schema(description = "接收者编号")
|
||||
@NotBlank(message = "接收者编号必填")
|
||||
@Size(max = 32, message = "接收者编号不可超过32位")
|
||||
private String receiverNo;
|
||||
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
package org.dromara.daxpay.core.param.assist;
|
||||
|
||||
import jakarta.validation.constraints.Size;
|
||||
import org.dromara.daxpay.core.param.PaymentCommonParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@@ -18,16 +19,19 @@ import lombok.experimental.Accessors;
|
||||
@Schema(title = "通道认证参数")
|
||||
public class AuthCodeParam extends PaymentCommonParam {
|
||||
|
||||
@Schema(description = "通道")
|
||||
@NotBlank(message = "通道不可为空")
|
||||
@Size(max = 32, message = "支付通道不可超过32位")
|
||||
@Schema(description = "支付通道")
|
||||
@NotBlank(message = "支付通道不可为空")
|
||||
private String channel;
|
||||
|
||||
@Schema(description = "标识码")
|
||||
@NotBlank(message = "标识码不可为空")
|
||||
@Size(max = 200, message = "认证标识码不可超过200位")
|
||||
@Schema(description = "认证标识码")
|
||||
@NotBlank(message = "认证标识码不可为空")
|
||||
private String authCode;
|
||||
|
||||
/** 用于查询Code值, 可以为空 */
|
||||
@Schema(description = "查询Code")
|
||||
@Size(max = 64, message = "查询码不可超过64位")
|
||||
@Schema(description = "查询码")
|
||||
private String queryCode;
|
||||
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
package org.dromara.daxpay.core.param.assist;
|
||||
|
||||
import org.dromara.daxpay.core.param.PaymentCommonParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.dromara.daxpay.core.param.PaymentCommonParam;
|
||||
|
||||
/**
|
||||
* 生成授权链接参数
|
||||
@@ -18,15 +20,17 @@ import lombok.experimental.Accessors;
|
||||
public class GenerateAuthUrlParam extends PaymentCommonParam {
|
||||
|
||||
/**
|
||||
* 通道
|
||||
* 支付通道
|
||||
*/
|
||||
@Schema(description = "通道")
|
||||
@NotBlank(message = "支付通道必填")
|
||||
@Schema(description = "支付通道")
|
||||
private String channel;
|
||||
|
||||
/**
|
||||
* 自定义授权重定向地址, 如果不传, 使用系统提供的默认地址
|
||||
*/
|
||||
@Schema(description = "自定义授权重定向地址")
|
||||
@Schema(description = "授权重定向地址")
|
||||
@Size(max = 100, message = "授权重定向地址不可超过100位")
|
||||
private String authRedirectUrl;
|
||||
|
||||
}
|
||||
|
@@ -48,7 +48,6 @@ public class PayParam extends PaymentCommonParam {
|
||||
@Schema(description = "自动分账")
|
||||
private Boolean autoAllocation;
|
||||
|
||||
|
||||
/** 过期时间 */
|
||||
@Schema(description = "过期时间")
|
||||
@JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
|
||||
|
Reference in New Issue
Block a user