New file |
| | |
| | | package com.dy.pipIrrWechat.wechatpay.dto; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import jakarta.validation.constraints.Positive; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author ZhuBaoMin |
| | | * @date 2024-07-15 10:32 |
| | | * @LastEditTime 2024-07-15 10:32 |
| | | * @Description |
| | | */ |
| | | |
| | | @Data |
| | | @Schema(name = "待退款对象") |
| | | public class ToRefund { |
| | | public static final long serialVersionUID = 202403072144001L; |
| | | |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | @Schema(description = "订单号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @NotBlank(message = "订单号不能为空") |
| | | private String orderNumber; |
| | | |
| | | /** |
| | | * 退款金额 |
| | | */ |
| | | @Schema(description = "退款金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | @NotNull(message = "退款金额不能为空") |
| | | @Positive(message = "退款金额必须为大于0的整数") |
| | | private Integer refundAmount; |
| | | } |