package com.ltkj.mall.domain; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotNull; import java.math.BigDecimal; @Data @ApiModel public class OrderRefund { private static final long serialVersionUID = 1L; @ApiModelProperty(value = "订单id",required = true) @NotNull(message = "订单ID不能为空") private Long id; /** 实际退款金额,(有可能退款金额小于实际支付金额) */ @ApiModelProperty(value = "实际退款金额") private Double refundAmount; /** 退款方式 */ @ApiModelProperty(value = "退款方式 1原路返回 2现金支付") private Integer refundType; /** 退款备注 */ @ApiModelProperty(value = "退款备注") private String refundContent; /** 订单费用, = goods_price + freight_price - coupon_price*/ @ApiModelProperty(value = "订单金额",required = true) @NotNull(message = "请输入订单金额") private BigDecimal orderPrice; /** 实付费用, = order_price - integral_price */ @ApiModelProperty(value = "实付费用",required = true) @NotNull(message = "请输入实付金额") private BigDecimal actualPrice; }